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,





Relevant Pages

  • Re: Geting the Host from URL in cgi script
    ... sivasakthi wrote: ... by using the param method.. ... now i wanted to retrieve the host of ...
    (perl.beginners)
  • Re: Need a little help with a proof of concept cgi.
    ... > I'm sure that there has to be a way to do a very simple cgi script ... I think you want to separate the tallying of stats from the display. ... When someone hits your CGI script, you only have to retrieve the ... statistics, whether they be from a flat file, a DBM file or a database ...
    (freebsd-questions)
  • RE: Defragmentation doesnt
    ... While trying to retrieve the URL: ... Unable to determine IP address from host name for ... > Am on XP home version, and have an odd problem. ... > When I click on Defragment - or Analyze - nothing happens? ...
    (microsoft.public.windowsxp.perform_maintain)
  • GetMyIP version 1.0.1 has been released.
    ... GetMyIP version 1.0.1 has been released. ... This Program will retrieve your IP address assigned to a host either ... through an external server. ...
    (comp.os.os2.announce)
  • Re: URGENT:Unable to determine IP address from host name problem on XP
    ... if not then check the DNS server for the proper entry. ... if not then check the web service on the host ... While trying to retrieve the URL: ...
    (microsoft.public.windowsxp.general)