Skip to content

Instantly share code, notes, and snippets.

@tempire
Created July 26, 2012 04:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tempire/3180250 to your computer and use it in GitHub Desktop.
Save tempire/3180250 to your computer and use it in GitHub Desktop.
MOJO_USERAGENT_DEBUG
~ MOJO_USERAGENT_DEBUG=1 perl my_script.pl
-- Blocking request (http://mojolicio.us)
-- Connect (http:mojolicio.us:80)
-- Client >>> Server (http://mojolicio.us)
GET / HTTP/1.1
User-Agent: Mojolicious (Perl)
Connection: keep-alive
Content-Length: 0
Host: mojolicio.us
-- Client <<< Server (http://mojolicio.us)
HTTP/1.1 200 OK
Connection: keep-alive
Content-Type: text/html;charset=UTF-8
X-Powered-By: Mojolicious (Perl)
Date: Thu, 26 Jul 2012 04:24:10 GMT
Content-Length: 10064
Server: Mojolicious (Perl)
<!doctype html><html>
<head>
<title>
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment