Jaroslaw Fedevych (UALUG wrote:
On Tue, Mar 22, 2005 at 10:15:58PM +0000, John Fader
wrote:
lynx
-source
"http://meta.wikimedia.org/w/index.php?title=Wikipedia&action=edit" |
grep -i token gives no output
The token isn't there unless you're logged in, it seems.
Well, exactly -- there is no point in verifying your login credentials
if you are not logged in.
But, it should not then bounce you to preview, as no token is required.
Strange...
Ok, so since I'm not supporting logging in yet, it should work without
considering edit tokens.
Monitoring the http traffic, I notice the cookie PHPSESSID - would
this being set incorrectly cause an edit to fail?
I've pasted a captured session below. Hopefully someone might see from
this why the edit isn't checked in:
POST /wiki/index.php?title=Very_small_test&action=submit HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041003 Firefox/0.10
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
Connection: keep-alive
Content-Type: multipart/form-data;
boundary=------------t4X4PnvyQFePUtyUn1guOoRIREp5XVvPZTTxEMvdcZ06RyaEzF8L1Xd
Content-Length: 884
Cookie: PHPSESSID=c55689cac6afedce4dfa9f3f290cf89c
Pragma: no-cache
Cache-Control: no-cache
------------t4X4PnvyQFePUtyUn1guOoRIREp5XVvPZTTxEMvdcZ06RyaEzF8L1Xd
Content-Disposition: form-data; name=wpTextbox1
this is a very small test.
[[オーバーク]]
aaa ''' bbb ccc ''' ddd eee
aaa ''' bbb '' ccc ''' ddd '' eee '''
ffff
------------t4X4PnvyQFePUtyUn1guOoRIREp5XVvPZTTxEMvdcZ06RyaEzF8L1Xd
Content-Disposition: form-data; name=wpSummary
type a summary of your edit here
------------t4X4PnvyQFePUtyUn1guOoRIREp5XVvPZTTxEMvdcZ06RyaEzF8L1Xd
Content-Disposition: form-data; name=wpSave
Save page
------------t4X4PnvyQFePUtyUn1guOoRIREp5XVvPZTTxEMvdcZ06RyaEzF8L1Xd
Content-Disposition: form-data; name=wpSection
sections!
------------t4X4PnvyQFePUtyUn1guOoRIREp5XVvPZTTxEMvdcZ06RyaEzF8L1Xd
Content-Disposition: form-data; name=wpEdittime
20050322224700
------------t4X4PnvyQFePUtyUn1guOoRIREp5XVvPZTTxEMvdcZ06RyaEzF8L1Xd--
HTTP/1.1 200 OK
Date: Tue, 22 Mar 2005 23:01:37 GMT
Server: Apache/2.0.51 (Fedora)
X-Powered-By: PHP/4.3.10
Content-language: en
Vary: Accept-Encoding,Cookie
Expires: -1
Cache-Control: private, must-revalidate, max-age=0
Content-Encoding: gzip
Content-Length: 3145
Connection: close
Content-Type: text/html; charset=utf-8
(html page with preview etc)