in reply to using http::record if inside fire wall

So you need to use a proxy ($foo) to be able to reach the internet because of your firewall? If that's the case, just supply HTTP::Proxy with a LWP::UserAgent object configured to use $foo.

update: Why did you comment out #$agent->proxy('http', "real-proxy");? It sounds to me like that's what you're missing, but I can't really be sure (your description of what's going on isn't very clear).

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: using http::record if inside fire wall
by Anonymous Monk on Jun 18, 2004 at 06:41 UTC
    So you need to use a proxy ($foo) to be able to reach the internet because of your firewall? If that's the case, just supply HTTP::Proxy with a LWP::UserAgent object configured to use $foo.

    Thats correct, because of firewall I added
    $agent->proxy('http', "real-proxy");
    I did tried with above line uncommented but it does't work, I mean doesn't connect to internet.
    thanks
    Vinay
      Turn on debugging to figure out whats going on (see perldoc LWP::Debug)

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

        Hi All, Yea!! its working. Ok I did two changes.
        1. I changed port from default(8080) to some other, just incase I was running something else on that port.
        2. I changed line from
        $agent->proxy('http', "real-proxy"); To $agent->proxy('http', "http://real-proxy");
        I think second change did the trick. Thank you all very much for your sugession. regards Vinay