From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Richard Newsgroups: gmane.emacs.help Subject: Re: url-retrieve-synchronously results differ from curl Date: Tue, 20 Jan 2015 08:37:39 +0100 Message-ID: <87y4oxewcc.fsf@yahoo.fr> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421739476 30842 80.91.229.3 (20 Jan 2015 07:37:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 20 Jan 2015 07:37:56 +0000 (UTC) Cc: Sean Allred , help-gnu-emacs To: Artur Malabarba Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 20 08:37:50 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YDTNl-0001xC-B9 for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 08:37:49 +0100 Original-Received: from localhost ([::1]:41696 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDTNk-0003oZ-Fk for geh-help-gnu-emacs@m.gmane.org; Tue, 20 Jan 2015 02:37:48 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41047) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDTNY-0003oR-JQ for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 02:37:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDTNV-0004AR-C6 for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 02:37:36 -0500 Original-Received: from mxin.ulb.ac.be ([164.15.128.112]:22948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDTNV-0004AK-6S for help-gnu-emacs@gnu.org; Tue, 20 Jan 2015 02:37:33 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AicFAG8EvlSkD4Xx/2dsb2JhbABbg1hYgjaxKwEBAQMGkj+FeQKBYQEBAQEBfYQNAQV5EAgDDhMlDwEEDTwTiBcBAxG7co0zAUoNhBwBAQEBAQUCAR+GBYIqhSCCKgeEKQWSIIQMgUSGIIYZhXEig289MQGCQgEBAQ Original-Received: from mathsrv4.ulb.ac.be (HELO localhost) ([164.15.133.241]) by smtp.ulb.ac.be with ESMTP; 20 Jan 2015 08:37:30 +0100 In-Reply-To: (Artur Malabarba's message of "Tue, 20 Jan 2015 00:28:46 -0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 164.15.128.112 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102168 Archived-At: Artur Malabarba writes: > It's possible this is just a bug in the API we're posting to, but it's > more likely we just haven't built this request correctly in > url-retrieve-synchronously. This would explain why it's being handled > differently from the request we make with curl. (I'm going a bit off topic here, sorry about that.) Did you inspect the actual request being sent via e.g. wireshark (this is GPL software) ? Perhaps you can spot a difference and get at least a starting point. If you never used wireshark, here's how I would do it : 1. type something in the filter box (near the top) like: (ip.src==208.118.235.148 or ip.dst == 208.118.235.148) and http That would only show HTTP traffic from/to gnu.org. 2. select a capture interface (e.g. eth0) and hit start 3. send the requests 4. hit "Stop" and inspect what you've got. HTH, -- Nicolas