unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Seth Mason <seth@edgecast.com>
To: 7017@debbugs.gnu.org
Subject: bug#7017: url-retrieve seems busted
Date: Mon, 07 May 2012 14:51:29 -0700	[thread overview]
Message-ID: <87zk9jacda.fsf@edgecast.com> (raw)
In-Reply-To: <plhbhvu5zr.fsf@fencepost.gnu.org>

If you put the following in a buffer and eval it, you'll get a 404:

    ;; http://httpbin.org/get?x=1
    ;; eval this buffer
    (url-retrieve (buffer-substring-no-properties 4 30) (lambda (&rest args) (switch-to-buffer (current-buffer))))

If you curl/wget the same URL, it'll work fine.

If you look at the request, it's going to "/get%3fx%3d1". It seems to me
that the URL is getting improperly encoded for multibyte strings.





  parent reply	other threads:[~2012-05-07 21:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <plhbhvu5zr.fsf@fencepost.gnu.org>
2012-04-10 11:22 ` bug#7017: Suggestion: (url-retrieve-internal) hexify multibyte URL string first Lars Magne Ingebrigtsen
2012-05-07 21:51 ` Seth Mason [this message]
2012-05-08  4:52   ` bug#7017: url-retrieve seems busted Chong Yidong
2012-05-08  5:25     ` Chong Yidong
2012-05-09  8:34       ` Chong Yidong

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=87zk9jacda.fsf@edgecast.com \
    --to=seth@edgecast.com \
    --cc=7017@debbugs.gnu.org \
    /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).