function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
reputationdemonreputationdemon 

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,

Best Answer chosen by Admin (Salesforce Developers) 
reputationdemonreputationdemon

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.