cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: GET REQUEST WITH AMPERSAND

From: Stephen Pynenburg <spynenburg_at_gmail.com>
Date: Sat, 23 May 2009 08:43:39 -0700

php-curl doesn't seem to do that for me. I tried the test case:
<?PHP
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://www.google.ca/?x=&y=');
curl_exec($ch);
?>
And it worked fine. (libcurl/7.16.0 OpenSSL/0.9.8i zlib/1.2.3 ) Maybe you
have a different/bugged version?
-Stephen

On Sat, May 23, 2009 at 02:19, 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 &amp;
> however the server does not like one of the &amp; 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
>
> Many thanks
>
> ------------------------------
> Join the all-new Windows Live Messenger family Click here!<http://www.microsoft.com/ireland/windows/windowslive/default.aspx>
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
>

_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2009-05-23