cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: Curl::easy and cookies over proxy

From: <Nico.Baggus_at_mail.ing.nl>
Date: Mon, 18 Mar 2002 13:10:06 +0100

Are you sure the proxy doesn't filter cookies?

Does it work with f.e. netscape / ie through the proxy???

regards,
Nico Baggus

> -----Original Message-----
> From: curl_at_contactor.se
> Sent: Monday, March 18, 2002 11:46 AM
> To: Curl list <curl_at_contactor.se>
> Subject: Curl::easy and cookies over proxy
>
>
> I'm having problems with cookies when I'm using Curl::easy
> over a proxy.
> It works fine without proxy.
>
> Here's an excerpt of what I'm doing:
>
> ----
> $curl = Curl::easy::init() or die "curl init failed!\n";
> $::errbuf = "";
> Curl::easy::setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
> Curl::easy::setopt($curl, CURLOPT_ERRORBUFFER, "::errbuf");
> Curl::easy::setopt($curl, CURLOPT_WRITEFUNCTION, \&body_callback);
> Curl::easy::setopt($curl, CURLOPT_PROXY, "http://int-proxy1:8080");
>
> Curl::easy::setopt($curl, CURLOPT_URL, $url);
> Curl::easy::setopt($curl, CURLOPT_FILE, \@body);
> Curl::easy::setopt($curl, CURLOPT_COOKIEJAR, \@cookies);
> print STDERR "curling $url\n";
> if (Curl::easy::perform($curl)) {
> print STDERR "Failed :$::errbuf\n";
> }
> print STDERR "cookies: @cookies\n";
> ----
>
> When going through a proxy, @cookies is empty. Without proxy, it works
> just fine. Any ideas?
>
> I'm using curl 7.9.5 and Curl::easy 1.20.
>
> --
> Björn
>

-----------------------------------------------------------------
ATTENTION:
The information in this electronic mail message is private and
confidential, and only intended for the addressee. Should you
receive this message by mistake, you are hereby notified that
any disclosure, reproduction, distribution or use of this
message is strictly prohibited. Please inform the sender by
reply transmission and delete the message without copying or
opening it.

Messages and attachments are scanned for all viruses known.
If this message contains password-protected attachments, the
files have NOT been scanned for viruses by the ING mail domain.
Always scan attachments before opening them.
-----------------------------------------------------------------
Received on 2002-03-18