curl - The provided value is not a valid RFC-2822 date -


i have been testing bigcommerce api calls,

firstly tried orders.json call, , did got proper reply.

but when added date range parameters ie min_date_created , max_date_created, gave me error.

i testing using php curl, following url:

https://test.mybigcommerce.com/api/v2/orders.json?min_date_created=thu, 16 may 2013 07:23:55 +0000&max_date_created=sat, 18 may 2013 18:29:59 +0000 

and following error getting:

[status] => 400 [message] => field 'min_date_created' invalid. [details] => stdclass object ( [invalid_reason] => provided value 'thu,' not valid rfc-2822 date. ) 

can 1 tell me went wrong?

thanks,

comment promoted answer after correct:

you need rawurlencode parameters.

*edit*changed urlencode rawurlencode, spaces encoded %20 rfc, opposed +'s*


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -