Re: trouble with get function and proxy



I have found two solutions that work.
1 - modifying the configuration of the OS

Under Windows NT or XP
Right click on "My Computer", click on "properties", select the
"environment" tab. These are your environment settings. Make the
following changes:

1. Add the setting HTTP_proxy, with your proxy name as the value
(you must include "http://"; ), followed by a colon and the proxy port,
if applicable; e.g., "http://proxy:8080";
2. Add the setting HTTP_proxy_user, with your user name as the
value
3. Add the setting HTTP_proxy_pass, with your password as the
value

Under Windows 95
In your AUTOEXEC.BAT file, place the following lines then reboot so
the changes can take effect:

3. SET HTTP_proxy=<your proxy server (you must include "http://";
>, followed by a colon and the proxy port, if applicable; e.g., SET HTTP_proxy=http://proxy:8080
4. SET HTTP_proxy_user=<your user name>
5. SET HTTP_proxy_pass=<your password>

2 - modifying the script perl

use LWP::Simple;
use LWP::UserAgent;

my $ua = LWP::UserAgent->new();
$ua->proxy( 'http', 'http://255.255.255.255:3615/');

my $req = HTTP::Request->new( GET => 'http://www.google.com/' );
my $res = $ua->request($req);
my $page = $res->content();

.



Relevant Pages

  • Re: Shock and Awe
    ... Windows is not the only system that has file locking. ... modifying the file on disk, then forcing the app to be paged out. ... In the versions of Solaris that I worked with in the 1990s, ...
    (comp.sys.mac.system)
  • Re: Theme Moon
    ... the title bar colours short of modifying the templates of ... help of WimpSWIve and changing the colours of all windows to ...
    (comp.sys.acorn.apps)
  • Re: Puzzle: floppy disk drive memory conflict
    ... RAM, failing to work properly or consistently. ... | Windows freezes on the welcome screen with a single beep from the motherboard. ... It involved going into the | registry and modifying a single entry concerning the floppy disk drive, | something like changing a zero to a one, and afterwards the problem | completely disappeared. ... What is that single entry that I need to | modify in the registry in order to resolve this conflict? ...
    (microsoft.public.windowsxp.hardware)
  • How to reduce the height of SIP?
    ... I'm developing a custom SIP on evc3.0 with PPC2002, ... modifying the included source of a Book:"Programming Windows CE 2nd Edition," ... and have problems with resizing it. ...
    (microsoft.public.windowsce.embedded.vc)
  • A question about dataset loading
    ... So I get the following error when I try to update my dataset from a windows ... modifying a line of code. ... the Windows Form Designer generated code region, ... If i could find this, i could modify it, and hopefully it will fix my ...
    (microsoft.public.dotnet.languages.vb)

Loading