Guest User

Untitled

a guest
Feb 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. use strict;
  2. use warnings;
  3. use IO::Socket::INET;
  4.  
  5. my ($host, $port) = @ARGV;
  6.  
  7. my $sock = IO::Socket::INET->new(
  8. PeerAddr => $host,
  9. PeerPort => $port,
  10. ) or die "cannot open $host:$port";
  11.  
  12. print $sock <<"...";
  13. POST / HTTP/1.1
  14. Host: $host
  15. Content-Length: -20
  16.  
  17. a
  18. ...
  19.  
  20. warn <$sock>;
Add Comment
Please, Sign In to add comment