I was just wondering how one would go about sending an HTTP request header
to a webserver.
Right now, I have a perl script gather various system information (uptime,
users, load average, etc.) and jumble it into a big, ready to post block.
All I need to make that block to be able to post to a webserver is the
correct HTTP headers to initiate a HTTP connection.

Heres my socket connection:

$socket = IO::Socket::INET->new(PeerAddr => $remote_host,
        PeerPort => $remote_port,
        Proto => "tcp",
        Type => SOCK_STREAM)
  or die "socket failed\n";

I assume thats capable of working with HTTP, assuming correct host and port.
Here is what I want posted to the webserver:

$body = "?user=$user_email&pass=$user_password&upt=$UPT";

Basicaly, username, password, and currently, the uptime value.
To make all this work really, all I need to do is setup the initial HTTP
connection, which I cant find documented anywhere.
If anyone could help me finish this off, I would be most gratefull!
And if you need to see my entire script to understand what I'm doing, I can
do that.

Brent Jones






-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to