On Thursday 11 March 2010 21:52:51 Roan Kattouw wrote:
Unless CURL has a feature for capturing HTTP request
and response
headers, you may have to do that, yes.
* About to connect() to
en.wikipedia.org port 80 (#0)
* Trying 91.198.174.2... * connected
* Connected to
en.wikipedia.org (91.198.174.2) port 80 (#0)
POST /w/api.php?action=edit&format=xml HTTP/1.1
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8)
Gecko/20100214 Ubuntu/9.10 (karmic) Firefox/3.5.8
Host:
en.wikipedia.org
Accept: */*
Cookie: enwikiUserName=Kedadi; enwikiUserID=252701;
enwikiToken=e90204af77a78cc5fdfdd035a69c45c2;
enwiki_session=39ee0fb34e4f5f68ce4977a3987f474e
Content-Length: 1324
Content-Type: application/x-www-form-urlencoded
Expect: 100-continue
* HTTP 1.0, assume close after body
< HTTP/1.0 417 Expectation failed
< Server: squid/2.7.STABLE6
< Date: Thu, 11 Mar 2010 22:30:07 GMT
< Content-Type: text/html
< Content-Length: 61649
< X-Squid-Error: ERR_INVALID_REQ 0
< X-Cache: MISS from
knsq30.knams.wikimedia.org
< X-Cache-Lookup: NONE from knsq30.knams.wikimedia.org:80
< Connection: close
<
* Closing connection #0
--
Krenar Qehaja