From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.devel Subject: help with URL module needed Date: Fri, 26 Nov 2004 17:32:12 +0200 Message-ID: <200411261732.12616.pogonyshev@gmx.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1101483030 21661 80.91.229.6 (26 Nov 2004 15:30:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 26 Nov 2004 15:30:30 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 26 16:30:19 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1CXi38-0002bH-00 for ; Fri, 26 Nov 2004 16:30:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXiCO-00018S-5e for ged-emacs-devel@m.gmane.org; Fri, 26 Nov 2004 10:39:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CXiCE-00016s-Sy for emacs-devel@gnu.org; Fri, 26 Nov 2004 10:39:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CXiCE-00016B-4y for emacs-devel@gnu.org; Fri, 26 Nov 2004 10:39:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CXiCE-000163-1z for emacs-devel@gnu.org; Fri, 26 Nov 2004 10:39:42 -0500 Original-Received: from [213.165.64.20] (helo=mail.gmx.net) by monty-python.gnu.org with smtp (Exim 4.34) id 1CXi2v-00086U-VY for emacs-devel@gnu.org; Fri, 26 Nov 2004 10:30:06 -0500 Original-Received: (qmail 26369 invoked by uid 65534); 26 Nov 2004 15:30:04 -0000 Original-Received: from unknown (EHLO localhost.localdomain) (195.50.12.117) by mail.gmx.net (mp021) with SMTP; 26 Nov 2004 16:30:04 +0100 X-Authenticated: #16844820 Original-To: emacs-devel@gnu.org User-Agent: KMail/1.4.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:30391 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:30391 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]] # http -> Request is:=20 POST http://ru.wikipedia.org/w/wiki.phtml?title=3D%D0%A1%D0%BF%D0%B5%D1%8= 6%D0%B8%D0%B0%D0%BB%D1%8C%D0%BD%D1%8B%D0%B5:Userlogin&action=3Dsubmit HTT= P/1.1=20 MIME-Version: 1.0=20 Connection: close=20 Extension: Security/Digest Security/SSL=20 Host: ru.wikipedia.org=20 Accept-charset: utf-8;q=3D1, iso-8859-1;q=3D0.5, big5;q=3D0.5, iso-2022-j= p;q=3D0.5, shift_jis;q=3D0.5, iso-8859-15;q=3D0.5, iso-8859-2;q=3D0.5, is= o-8859-3;q=3D0.5, iso-8859-4;q=3D0.5, iso-8859-5;q=3D0.5, iso-8859-7;q=3D= 0.5, iso-8859-8;q=3D0.5, iso-8859-9;q=3D0.5, gb2312;q=3D0.5, euc-jp;q=3D0= =2E5, euc-kr;q=3D0.5, tis-620;q=3D0.5, iso-8859-14;q=3D0.5, windows-1252;= q=3D0.5, windows-1251;q=3D0.5, koi8-r;q=3D0.5, koi8-u;q=3D0.5, viscii;q=3D= 0.5, hz-gb-2312;q=3D0.5, iso-2022-cn-ext;q=3D0.5, iso-2022-cn;q=3D0.5, is= o-2022-jp-2;q=3D0.5, iso-2022-kr;q=3D0.5, utf-16;q=3D0.5, utf-16be;q=3D0.= 5, utf-16le;q=3D0.5=20 Accept: */*=20 User-Agent: URL/Emacs (i686-pc-linux-gnu; X11)=20 Content-Type: application/x-www-form-urlencoded=20 Content-length: 84=20 =20 wpName=3DPaul+Pogonyshev&wpLoginattempt=3DLogin&wpPassword=3Dxxxxxxxxxx&w= pRetype=3D&wpEmail=3D=20 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