All of lore.kernel.org
 help / color / mirror / Atom feed
From: Olof Johansson <olof.johansson@axis.com>
To: Juro Bystricky <juro.bystricky@intel.com>,
	<bitbake-devel@lists.openembedded.org>
Subject: Re: [PATCH] wget.py: support for semi-colons in URL
Date: Tue, 28 Jul 2015 13:00:57 +0200	[thread overview]
Message-ID: <1438081047-sup-2928@axis.com> (raw)
In-Reply-To: <1437849163-1577-1-git-send-email-juro.bystricky@intel.com>

Excerpts from Juro Bystricky's message of 2015-07-25 20:32:43 +0200:
> Some URLs contain semi-colons. For example, some GIT repositories
> support downloading snapshots using URL such as:
> 
> "http://abc123.com/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47"
> 
> Currently there is no way to construct SRC_URI with such URLs.
> Bitbake uses semi-colons in SRC_URI as delimiters for various parameters.

W3C _recommends_ [1] that HTTP URL consumers treat ; in query strings as
an &:

> We recommend that HTTP server implementors, and in particular, CGI
> implementors support the use of ";" in place of "&" to save authors
> the trouble of escaping "&" characters in this manner.

This means that

  http://abc123.com/git/?p=gcc/gcc.git;a=snapshot;h=a5dd47

and

  http://abc123.com/git/?p=gcc/gcc.git&a=snapshot&h=a5dd47

should be equivalent. I don't know how well spread this support is, or
if it works in your case, but it's a workaround if it does at least.

1: http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2

-- 
olof johansson


  parent reply	other threads:[~2015-07-28 11:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-25 18:32 [PATCH] wget.py: support for semi-colons in URL Juro Bystricky
2015-07-25 19:14 ` Christopher Larson
2015-07-27 16:10   ` Bystricky, Juro
2015-07-27 17:58     ` Christopher Larson
2015-07-27 20:01       ` Richard Purdie
2015-07-28  5:47     ` Peter Urbanec
2015-07-28 10:57       ` Olof Johansson
2015-07-28 11:00 ` Olof Johansson [this message]
2015-07-28 16:06   ` Bystricky, Juro
2015-07-28 19:38     ` Richard Purdie
2015-07-29 18:12       ` Bystricky, Juro

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1438081047-sup-2928@axis.com \
    --to=olof.johansson@axis.com \
    --cc=bitbake-devel@lists.openembedded.org \
    --cc=juro.bystricky@intel.com \
    /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.
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.