You need to sign in to do that
Don't have an account?
reputationdemon
curl - with query - error code 18
Hi,
I am using curl to query and return many rows from a table. I am getting a curl return code of 18 which says that the size of the file expected was not the same as was recieved.
If I add a LIMIT 10 to the (SOQL) query then it runs fine and I get a results file.
I know I will have to use querymore after the initial call but I need to get the query locator.
I have googled but not been able to find a resolution to this issue - Can anyone help?
Thanks,
Hi,
Just to update/close this - The length of the file that contains the request cannot be longer than 1024. You need an additional option if it is longer than this.
http://stackoverflow.com/questions/463144/php-http-post-fails-when-curl-data-1024
Thanks.