On Fri, May 13, 2005 3:45 pm, Chris Bruce said:
>> header("Content-type: image/jpg");
>> Header('Content-Disposition: attachment;
>> file="tigershippingdashboard20050429.jpg"');
>> echo $ret;
>
> Did you try this Jason? When I try it, it just downloads the
> getimage.php file with the binary co
On Saturday 14 May 2005 06:45, Chris Bruce wrote:
> > This should work:
[code snipped]
> Did you try this Jason?
Yes, I've tried the code that I posted (using my own URL for the image),
works for me.
> When I try it, it just downloads the
> getimage.php file with the binary content of the im
This should work:
$ch = curl_init(); // create cURL handle (ch)
if (!$ch) {
die("Couldn't initialize a cURL handle");
}
// set some cURL options
$ret = curl_setopt($ch, CURLOPT_URL,
"http://images.apple.com/home/2005/images/
tigershippingdashboard20050429.jpg");
$ret = curl_setopt($ch,
On Friday 13 May 2005 23:19, Chris Bruce wrote:
> I did look at your post on PATH_INFO which did not get me any closer to
> the solution. At this point, I am just trying to get an image using
> cURL and then force it to download to the computer. Here is the link:
This should work:
$ch = curl_ini
I did look at your post on PATH_INFO which did not get me any closer to
the solution. At this point, I am just trying to get an image using
cURL and then force it to download to the computer. Here is the link:
http://205.207.224.90/getimage.php
and here is the code:
header("Content-type: image
On Thu, May 12, 2005 11:54 am, Chris Bruce said:
> API. The problem is that the resulting image is being displayed as
> binary characters in the browser instead of downloading to my computer.
> Does anyone know how I can take the binary result and force it to
> download as a JPG image?
At a minim
On Friday 13 May 2005 02:54, Chris Bruce wrote:
> $ret = curl_setopt($ch, CURLOPT_HEADER, 0);
Try enabling the above or ...
> Does anyone know how I can take the binary result and force it to
> download as a JPG image?
... send an appropriate header before dumping the binary data.
--
Jason Wo
Hi,
I am connecting to a remote image download API using cURL functions. I
have the connection working fine and am getting the response from the
API. The problem is that the resulting image is being displayed as
binary characters in the browser instead of downloading to my computer.
Here is the
I just need some documentation on how to get curl to send to and receive
from a socket. Since there is no such information on www.php.net/curl.
Anyone, who can help me with that ?
Stefan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey,
I'm trying to use CURL for sending some headers to paypal. Can anyone tell
me why this code below doesn't work as expected???
$ch = curl_init();
curl_setopt($ch,
CURLOPT_URL,"https://www.paypal.com/cgi-bin/webscr";);
curl_setopt($ch, CURLOPT_POST, 1);
curl
Hi,
I have problem when using curl function to redirect to page. I use it
when I need to check for valid informations on the and because there are
passwords, I don't want to send it via GET in url. So I use curl to
redirect to the originating page. The script's name is saveplacer.php. I
use this
11 matches
Mail list logo