"Mahajan, Kiran" <mahaj...@us.panasonic.com> wrote:

> Hi Gabriel,
> I figured it out from the Polipo logs.
> Actually in the file diskcache.c in the function urlDirname() the url is
> not having http:// and the function returns -1.
> 
> Also about your second response,
> Even I thought that there might be some issue with libcurl. Following
> are the settings we are doing for Proxy in libcurl from Browser.
> curl_easy_setopt(curl_handle, CURLOPT_HTTPPROXYTUNNEL, 1);
> curl_easy_setopt(curl_handle, CURLOPT_PROXY, "127.0.0.1:8123");

Are you sure your application needs CURLOPT_HTTPPROXYTUNNEL?

CURLOPT_HTTPPROXYTUNNEL lets libcurl tunnel the request through
the proxy using CONNECT requests which don't contain the protocol
or the path.

To cache them Polipo would have to do lot of extra steps which
currently aren't implemented.

Quoting curl_easy_setopt(3):

| CURLOPT_HTTPPROXYTUNNEL
|  Set the parameter to 1 to make the library tunnel all operations
|  through a given HTTP proxy. There is a  big  difference  between
|  using  a  proxy and to tunnel through it. If you don't know what
|  this means, you probably don't want this tunneling option.

Fabian

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013 
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Polipo-users mailing list
Polipo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/polipo-users

Reply via email to