==== Net Programming, TCP/IP ==== ==Technical requirenments == ^What ^Where^ |Sending HTTP Requests by telnet requres a good telnet client | Install [[http://cygwin.com/install.html|Cygwin]] and add the **inetutils** package to it (includes telnet) | |Add the HackBar Firefox extension which allow sending POST Requests| [[https://addons.mozilla.org/en-US/firefox/addon/hackbar/|HackBar Firefox extension]] | ==Knowledge== |< 100% 30% - >| ^What ^Where^ |1. Introduction into sending HTTP Requests manually, by telnet.|[[http://blog.alagad.com/2004/11/03/tutorial-on-sending-manual-http-requests/|Tutorial here.]]| |2. Use Sockets to send HTTP Requests with Perl |In detail it is described [[http://www.tutorialspoint.com/perl/perl_socket.htm|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); |