all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* help with URL module needed
@ 2004-11-26 15:32 Paul Pogonyshev
  2004-11-26 16:04 ` Masatake YAMATO
  2004-11-26 16:27 ` Thien-Thi Nguyen
  0 siblings, 2 replies; 18+ messages in thread
From: Paul Pogonyshev @ 2004-11-26 15:32 UTC (permalink / raw)


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

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2004-11-30 21:29 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-26 15:32 help with URL module needed Paul Pogonyshev
2004-11-26 16:04 ` Masatake YAMATO
2004-11-26 16:58   ` Paul Pogonyshev
2004-11-28 14:38     ` Paul Pogonyshev
2004-11-28 19:12       ` Andreas Schwab
2004-11-28 22:37         ` Paul Pogonyshev
2004-11-28 22:59           ` Andreas Schwab
2004-11-28 23:12             ` Paul Pogonyshev
2004-11-28 23:43               ` Alex Schroeder
2004-11-29  0:10               ` Andreas Schwab
2004-11-29 14:01                 ` Paul Pogonyshev
2004-11-30 19:49                   ` Paul Pogonyshev
2004-11-30 21:29                     ` Andreas Schwab
2004-11-29 21:42             ` Thien-Thi Nguyen
2004-11-30  0:35               ` Andreas Schwab
2004-11-30  9:22                 ` Thien-Thi Nguyen
2004-11-30 17:18         ` Mark A. Hershberger
2004-11-26 16:27 ` Thien-Thi Nguyen

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.