This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
cgi_script_to_print_visitor_ip [2011/08/11 19:52] k2patel |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | <code cgi | index.cgi> | ||
- | #!/usr/bin/perl -wT | ||
- | # Ketan Patel | ||
- | |||
- | use strict; | ||
- | use CGI; | ||
- | my $q=CGI->new(); | ||
- | print $q->header().$q->remote_addr()."\n"; | ||
- | </code> | ||
- | Try it here !! | ||
- | |||
- | <code bash> | ||
- | curl --insecure https://108.35.33.156:12000/ip/index.cgi | ||
- | </code> |