User Tools

Site Tools


netprogramming

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
netprogramming [2012/07/29 07:44] skipidarnetprogramming [2020/12/27 20:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +==== 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:<sxh perl>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);</sxh> |