From: Paul Pogonyshev <pogonyshev@gmx.net>
Subject: help with URL module needed
Date: Fri, 26 Nov 2004 17:32:12 +0200 [thread overview]
Message-ID: <200411261732.12616.pogonyshev@gmx.net> (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
next reply other threads:[~2004-11-26 15:32 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-26 15:32 Paul Pogonyshev [this message]
2004-11-26 16:04 ` help with URL module needed 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200411261732.12616.pogonyshev@gmx.net \
--to=pogonyshev@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).