Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LWP and Sending Headers

Status
Not open for further replies.

melban

IS-IT--Management
Oct 23, 2002
28
US
use LWP::Simple;
$doc = get $url;
print "Content-type: text/html\n\n";
print "$doc";
exit;

The code above is what I've been using to send information to a shopping cart script so that if the user exits the browser while the credit card authorization is still going on the order will still take place.

In short I am needing to be able to send the customers IP address in the header instead of my server's IP. Is there an extension of LWP::COMMON where I can specify the header information so it looks like the user is requesting the page rather than my script? Any and all help is greatly appreciated.

Thanks
Shelby
webmaster@smwebdesigns.com
 
Hey yall I really really need some help on this one
 
you want to change REMOTE_ADDR at the server side as customers IP address? hmm, The best you can do is the to set the HTTP_REFERER (the referring page to something of your choice)

AFAIK the customers IP address is set by the (apache) server when the connection is established.. so this can't be changed.
---
cheers!
san.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top