Support Requests item #1466828, was opened at 2006-04-08 05:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=211118&aid=1466828&group_id=11118
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: other
Group: None
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: using Privoxy and the WWW::Mechanize::Shell
Initial Comment:
hiho!
i have a debian sarge system (kernel 2.6.8) and
installed privoxy (Privoxy version 3.0.3) for using it
with "tor", the anonymizing software..
i configured everything as i read in the internet and
it works so far (if i use lynx)!! if i open a page like
http://www.whatsmyip.org i see, that tor is working...
i use some special perl module for doing automated
things on websites. maybe you heard about this. it's
called WWW::Mechanize and there is a module called
WWW::Mechanize::Shell which is a interactive shell. you
can visit websites (it looks a bit like lynx, it's on
console) and do some things there (eg filling out a
form). then the WWW::Mechanize::Shell generates
automaticlly a perl-script which you can start and
which is doing the same what you have done before in
the WWW::Mechanize::Shell.
i now want the perl-sccipts to use privoxy and tor. so
i read in the internet, that i need to set a
environment-variable because
the WWW::Mechanize::Shell looks in /etc/environment
for an entry named
HTTP_PROXY=. so i set this entry via "export
HTTP_PROXY=http://127.0.0.1:8118" which is the adress
of privoxy.
when i start the WWW::Mechanize::Shell, it can't find
any url or website if i try to... look what is happening:
>get http://www.google.de
Retrieving http://www.google.de(500)
>content
500 Chunked must be last Transfer-Encoding 'identity'
if i remove the entry in the /etc/environment,
everything works fine.... but
i need to run a perl-script over my proxy, so what am i
doing wrong??
i also try to use a small script:
#!/usr/bin/perl -w
use strict;
use WWW::Mechanize;
use WWW::Mechanize::FormFiller;
use URI::URL;
my $agent = WWW::Mechanize->new( autocheck => 1 );
my $formfiller = WWW::Mechanize::FormFiller->new();
#$agent->env_proxy();
$agent->proxy(['http', 'https'], 'http://127.0.0.1:8118');
$agent->get('http://www.google.de');
$agent->form(1) if $agent->forms and scalar
@{$agent->forms};
print $agent->content,"\n";
it should just prints out the received data from
google.de.. but the
error-message is the same:
Error GETing http://www.google.de:
Chunked must be last Transfer-Encoding 'identity' at
ip-test.pl line 14
as you can see above, i tried it in two different ways:
first i used $agent->env_proxy(); to get the
proxy-setting from the
/etc/environment...
then i tried to specify the proxy directly:
$agent->proxy(['http', 'https'],
'http://127.0.0.1:8118');
same error-msg as above....
i posted my problem on different websites and someone
answered me, i should have a look about my proxy. maybe
it is doing something wrong while it's forwarding the
perl-script-requests??
does anyone of you have an idea what the problem could be??
ps: the log-file of privoxy shows for every try i do
the following:
Apr 08 13:40:26 Privoxy(-1209807952) Request:
http://www.wieistmeineip.de/
nothing more...
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=211118&aid=1466828&group_id=11118
|