curl-users
Re: Get Request URL encoded
Date: Sat, 23 May 2009 11:03:15 -0500
On Sat, May 23, 2009 at 4:11 AM, paul martin <paul_martin_84_at_hotmail.com>wrote:
> Hey i am trying to do a GET request to a url with & in it
>
> phpcurl automatically encodes the & to &
> however the server does not like one of the & and refuses to send back
> the image
> however from a webrowser it works fine cause I can send it as &
>
> I tested curl from command line
> and got it working using --d "get=image&c=entry&f=test" --get
>
> how can i send data like this during a GET request in php
> or how can I get phpcurl to stop encoding the connection url
>
Try hex-encoding the '&'. Replace all '&' with %26.
Ralph Mitchell
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-05-23