Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$ua = LWP::UserAgent->new; $cookie_jar = HTTP::Cookies->new(file => "cookies.dat"); $ua->cookie_jar($cookie_jar); $header = new HTTP::Headers (Accept => 'text/html'); $request = HTTP::Request->new(GET, $page, $header); $response = $ua->request($request);
This code works fine, but the problem is that my application is hosted on my server for use by my clients and the REMOTE_ADDR environment variable which is passed by the ua is *my* machine but it needs to be my *clients'* REMOTE_ADDR as they are the one that really needs to be identified as making the request.
Two questions here...
1) How can I get the ua to pass my client's REMOTE_ADDR?
2) Are there any alternate approaches to this problem?
TIA for any wisdom :-)
Jeff
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: LWP User Agent Difficulty
by dws (Chancellor) on Aug 10, 2002 at 15:48 UTC | |
by Anonymous Monk on Aug 10, 2002 at 18:23 UTC | |
|
Re: LWP User Agent Difficulty
by kschwab (Vicar) on Aug 10, 2002 at 15:46 UTC |