+ Start a Discussion

curl - with query - error code 18



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?



Best Answer chosen by Admin (Salesforce Developers) 



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.