getToHost2 function

Sends Get Request to HTTP Server (host) with raw contents

Sends Get Request to HTTP Server (host) with raw contents

Sends Get Request to HTTP Server (experimental version of getToHost based on raw data type)

getToHost2(host,path,referer,port=80)

Arguments

  • host: The host to which to send the Request e. g.: www.spiegel.de, 127.0.0.1
  • path: The path to the file eg. /cgi/getpasswords.pl?test=best or /index.html
  • referer: something like www.myhome.org
  • port: its 80 or 8080 most frequently

Returns

The document which the server returns as a string.

Details

It is a simple http client. So it does not take care of special chars e.g. whitspaces. For details see e.g. perl HTTP::Request::Common documentation and

http://www.w3.org/Protocols/rfc1341/0_TableOfContents.html

Author(s)

E.W.Wolski wolski@molgen.mpg.de

See Also

getToHost

Examples

#check first if www.molgen.mpg.de is running. #port <- 80 #getToHost2("www.molgen.mpg.de", # "/~wolski/test.php4?test=test1&test2=test2&test3=3", # "www.test.pl", port=port)
  • Maintainer: Andreas Westfeld
  • License: GPL (>= 2)
  • Last published: 2022-04-25

Useful links