Click here to get back home

LWP With Privoxy

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
LWP With Privoxy jim_deadlock 04-29-2007
Posted by jim_deadlock on April 29, 2007, 10:12 pm
Please log in for more thread options


LWP doesn't seem to want to work through Privoxy (privoxy.org).
Privoxy is up and running fine through a normal browser and my script
works fine without Privoxy, but I can't get them working together.
Here is my code:

use LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->proxy(['http', 'ftp'], "http://127.0.0.1:8118/"); # Privoxy
$req = new HTTP::Request GET => "http://anysite.com";
$res = $ua->request($req);
print $res->content;

... which produces this:

500 Chunked must be last Transfer-Encoding 'identity'


Posted by jim_deadlock on April 30, 2007, 1:36 am
Please log in for more thread options


Found the answer:

This turns out to be a bug in Privoxy. If you upgrade to the 3.0.5-
Beta version, the chunked problem goes away.


> LWP doesn't seem to want to work through Privoxy (privoxy.org).
> Privoxy is up and running fine through a normal browser and my script
> works fine without Privoxy, but I can't get them working together.
> Here is my code:
>
> use LWP::UserAgent;
> $ua = new LWP::UserAgent;
> $ua->proxy(['http', 'ftp'], "http://127.0.0.1:8118/"); # Privoxy
> $req = new HTTP::Request GET => "http://anysite.com";
> $res = $ua->request($req);
> print $res->content;
>
> ... which produces this:
>
> 500 Chunked must be last Transfer-Encoding 'identity'




Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap