User Tools

Site Tools


netprogramming

Net Programming, TCP/IP

Technical requirenments
What Where
Sending HTTP Requests by telnet requres a good telnet client Install Cygwin and add the inetutils package to it (includes telnet)
Add the HackBar Firefox extension which allow sending POST Requests HackBar Firefox extension
Knowledge
< 100% 30% - >
What Where
1. Introduction into sending HTTP Requests manually, by telnet.Tutorial here.
2. Use Sockets to send HTTP Requests with Perl In detail it is described here, and in short:
use IO::Socket;
my $sock = new IO::Socket::INET (
                                 PeerAddr => 'www.example.org',
                                 PeerPort => '80',
                                 Proto => 'tcp',
                                );
die "Could not create socket: $!\n" unless $sock;
print $sock "GET /index.html HTTP/1.0\r\n";
print $sock "Host: www.example.org\r\n";
print $sock "Cookie: test=quest\r\n\r\n";
print while <$sock>;
close($sock);
netprogramming.txt · Last modified: 2020/12/27 20:35 by 127.0.0.1