Skip to content

Instantly share code, notes, and snippets.

@MarkMenard
Created March 4, 2009 21:38
Show Gist options
  • Save MarkMenard/74020 to your computer and use it in GitHub Desktop.
Save MarkMenard/74020 to your computer and use it in GitHub Desktop.
First Request to get login form:
GET /mori/ HTTP/1.1
Accept-Language: en-us,en;q=0.5
Accept: */*
User-Agent: WWW-Mechanize/0.9.0 (http://rubyforge.org/projects/mechanize/)
Connection: keep-alive
Accept-Encoding: gzip,identity
Host: mori.demo.vitarara.net
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
HTTP/1.1 200 OK
Date: Wed, 04 Mar 2009 20:55:16 GMT
Server: Apache/2.0.52 (CentOS)
X-Powered-By: Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5
Set-Cookie: JSESSIONID=BE32C677C9C7685EFAC36F0254745080; Path=/
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=ISO-8859-1
Submit login form:
POST /mori/registry/Index.do HTTP/1.1
Accept-Language: en-us,en;q=0.5
Accept: */*
Content-Type: application/x-www-form-urlencoded
User-Agent: WWW-Mechanize/0.9.0 (http://rubyforge.org/projects/mechanize/)
Connection: keep-alive
Accept-Encoding: gzip,identity
Content-Length: 34
Host: mori.demo.vitarara.net
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
login=secretary&password=freedoniaHTTP/1.1 200 OK
Date: Wed, 04 Mar 2009 20:55:16 GMT
Server: Apache/2.0.52 (CentOS)
X-Powered-By: Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5
Set-Cookie: JSESSIONID=29F23AD3964D0B2266D3834D077F4109; Path=/
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=ISO-8859-1
2005
Get a page on the site:
GET /mori/registry/FindMember.do;jsessionid=29F23AD3964D0B2266D3834D077F4109 HTTP/1.1
Accept-Language: en-us,en;q=0.5
Accept: */*
User-Agent: WWW-Mechanize/0.9.0 (http://rubyforge.org/projects/mechanize/)
Connection: keep-alive
Accept-Encoding: gzip,identity
Host: mori.demo.vitarara.net
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
HTTP/1.1 200 OK
Date: Wed, 04 Mar 2009 20:55:16 GMT
Server: Apache/2.0.52 (CentOS)
X-Powered-By: Servlet 2.4; JBoss-4.0.2 (build: CVSTag=JBoss_4_0_2 date=200505022023)/Tomcat-5.5
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=ISO-8859-1
270d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment