develooper Front page | perl.beginners | Postings from March 2008

Geting the Host from URL in cgi script

Thread Next
From:
sivasakthi
Date:
March 28, 2008 02:01
Subject:
Geting the Host from URL in cgi script
Hi all,

I have passed the one URL to cgi script , and i have retrieve the values
by using the param method.. 

the example url is following ,

http://172.16.2.30:2004/block/blocked.cgi?url=google.com&target=gambling

now i wanted to retrieve the host of
http://172.16.2.30:2004/block/blocked.cgi .. how i can able to get that?



Thanks,





Thread Next


Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About