.
.
.
$UA->cookie_jar->add_cookie_header();
$resp = $UA->post ( $actionUrl,
@ns_headers,
'Content_type' => 'application/x-www-form-urlencoded',
'Content' => [
<... a bunch of stuff ...>
]
);
.
.
.
####
POST /ditor/ditctl.do?method=save HTTP/1.1
Connection: keep-alive
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8;,image/png,*/*;q=0.5
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding: gzip,deflate
Accept-Language: en-us,en;q=0.5
Host: somejunk.js.jps.com:8888
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Red Hat/1.7.8-1.1.3.1
Content-Length: 336
Content-Type: application/x-www-form-urlencoded
Cookie: JSESSIONID=1545454aae552555a48773717374620
Cookie2: $Version="1"
Keep-Alive: 300
!pu`
!pu`
content=things&blah=balhahah&morejunk=&nonsense=xyz
!pu`
HTTP/1.1 100 Continue
Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE
Date: Tue, 12 Jul 2005 18:00:00 GMT
!pu`
!pu`
HTTP/1/1 200 OK
Date: Tue, 12 Jul 2005 18:00:00 GMT
Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE
Connection: Close
Content-Type: text/html
Transfer-Encoding:chunked
##
##
POST /ditor/ditctl.do?method=save HTTP/1.1
Host: somejunk.js.jps.com:8888
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050512 Red Hat/1.7.8-1.1.3.1
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8;,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Referer: http://somejunk.js.jps.com:8888/ditor/ditctl.do?stuff=stuff
Cookie: JSESSIONID=9989887adf879da987982jkd11
!pu`
!pu`
Content-Type: application/x-www-form-urlencoded
Content-Length: 384
content=things&blah=balhahah&morejunk=&nonsense=xyz
!pu`
HTTP/1.1 100 Continue
Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE
Date: Tue, 12 Jul 2005 17:29:04 GMT
!pu`
!pu`
HTTP/1/1 200 OK
Date: Tue, 12 Jul 2005 17:29:04 GMT
Server: Oracle9iAS (9.0.3.0.0) Containers for J2EE
Content-Location: http://somejunk.js.jps.com:8888/ditor/Some.jps
Connection: Keep-Alive
Keep-Alive: tomeout=15, max=100
Content-Type: text/html
Transfer-Encoding:chunked
... a bunch html ...