Re: using Polipo as a cache on QNX

Fabian Keil <[email protected]>
Newsgroups gmane.comp.web.polipo.user
Message-ID <[email protected]>
"Mahajan, Kiran" <[email protected]> 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

------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlEc0BIACgkQBYqIVf93VJ2s9wCfSPe+ViJ2cwlPQ6FUwdz1iy4K
qpsAnikeLtBL+67NwbaW2g4CcrD40z4x
=6kts
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.