emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help with URL module needed


From: Paul Pogonyshev
Subject: help with URL module needed
Date: Fri, 26 Nov 2004 17:32:12 +0200
User-agent: KMail/1.4.3

I'm trying to login to Wikipedia from within Emacs using the URL
module (to be able to edit and save articles in Emacs.)  However,
I'm having problems with sending POST requests (to transmit login
information.)  Here is what I get:

[in *URL-DEBUG* buffer]:

http -> Contacting host: [[my proxy]]
http -> Marking connection as busy: [[my proxy]] #<process ...>
http -> Request is: 
POST 
http://ru.wikipedia.org/w/wiki.phtml?title=%D0%A1%D0%BF%D0%B5%D1%86%D0%B8%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5:Userlogin&action=submit
 HTTP/1.1 
MIME-Version: 1.0 
Connection: close 
Extension: Security/Digest Security/SSL 
Host: ru.wikipedia.org 
Accept-charset: utf-8;q=1, iso-8859-1;q=0.5, big5;q=0.5, iso-2022-jp;q=0.5, 
shift_jis;q=0.5, iso-8859-15;q=0.5, iso-8859-2;q=0.5, iso-8859-3;q=0.5, 
iso-8859-4;q=0.5, iso-8859-5;q=0.5, iso-8859-7;q=0.5, iso-8859-8;q=0.5, 
iso-8859-9;q=0.5, gb2312;q=0.5, euc-jp;q=0.5, euc-kr;q=0.5, tis-620;q=0.5, 
iso-8859-14;q=0.5, windows-1252;q=0.5, windows-1251;q=0.5, koi8-r;q=0.5, 
koi8-u;q=0.5, viscii;q=0.5, hz-gb-2312;q=0.5, iso-2022-cn-ext;q=0.5, 
iso-2022-cn;q=0.5, iso-2022-jp-2;q=0.5, iso-2022-kr;q=0.5, utf-16;q=0.5, 
utf-16be;q=0.5, utf-16le;q=0.5 
Accept: */* 
User-Agent: URL/Emacs (i686-pc-linux-gnu; X11) 
Content-Type: application/x-www-form-urlencoded 
Content-length: 84 
 
wpName=Paul+Pogonyshev&wpLoginattempt=Login&wpPassword=xxxxxxxxxx&wpRetype=&wpEmail=
 


The response from proxy is (HTML is stripped):

HTTP/1.0 411 Length Required
Server: squid/2.5.STABLE2
Mime-Version: 1.0
Date: Fri, 26 Nov 2004 15:20:13 GMT
Content-Type: text/html
Content-Length: 2107
Expires: Fri, 26 Nov 2004 15:20:13 GMT
X-Squid-Error: ERR_INVALID_REQ 0
X-Cache: MISS from [[my proxy]]
Proxy-Connection: close

While trying to process the request:

[see above]

The following error was encountered:

Invalid Request

Some aspect of the HTTP Request is invalid.  Possible problems:

* Missing or unknown request method
* Missing URL
* Missing HTTP Identifier (HTTP/1.0)
* Request is too large
* Content-Length missing for POST or PUT requests
* Illegal character in hostname; underscores are not allowed


The URL etc. are all correct.  If I don't send any POST data, the request
is passed to ru.wikipedia.org just fine.  The problem is only with POST
data, but I don't understand where it is.

Can anyone help here?

Paul





reply via email to

[Prev in Thread] Current Thread [Next in Thread]