Login or Sign Up
Logging in...
Remember me
Log in
Forgot password or user name?
or
Sign Up
Log in with
Search in titles only
Search in Perl/CGI only
Search
Advanced Search
Forum
Groups
Today’s Posts
Calendar
Forum
Server side development
Perl/CGI
Announcement
Collapse
No announcement yet.
Returning HTTP_CLIENT_IP and HTTP_VIA in perl
Collapse
X
Collapse
Posts
Latest Activity
Photos
Search
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Richard
New to the CF scene
Join Date:
Jun 2002
Posts:
174
Share
Tweet
#1
Returning HTTP_CLIENT_IP and HTTP_VIA in perl
Jun 16, 2002, 03:23 PM
I can do it in PHP but dunno how to in perl.
Any ideas...???
\o/
jalarie
New to the CF scene
Join Date:
Jun 2002
Posts:
646
Share
Tweet
#2
Jun 17, 2002, 09:21 AM
On the web page I pull a supposedly-JavaScript file which is actually a link to a Perl/CGI:
<script type="text/javascript" src="http://myscript.cgi"></script>
The CGI routine responds with valid JavaScript beginning with the header:
print "Content-type: text/javascript\n\n";
Having said that, I've probably told you more than I know.
Comment
Post
Cancel
Feyd
New to the CF scene
Join Date:
May 2002
Posts:
418
Share
Tweet
#3
Jun 17, 2002, 12:59 PM
You can get the VIA with
$ENV{'HTTP_VIA'}
, though you may want to set it up with an IF to see if your host supports it at first, or if it is present in the current transaction.
Same thing with client_ip...
$ENV{'HTTP_CLIENT_IP'}
.
Moderator,
Perl/CGI Forum
shadowstorm.net
- subvert society
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
X
Comment