List Info

Thread: parameter seperator "&" in opensearch




parameter seperator "&" in opensearch
user name
2006-07-30 04:54:57
when creating a search, what replaces the parameter
seperator "&" in the
url, I've tried

as an example,
http://www.google.c
o.nz/search?q=%26ie=utf-8

rather than,
http://www.google.c
o.nz/search?q=&ie=utf-8

since any "&" will fail.

=== [ Opensearch.org Discuss mailing list ]
=========================
http:
//opensearch.org/mailman/listinfo/discuss/
Unsubscribe on the web page, or discuss-unsubscribeopensearch.org
Problems?  Reach a human at mailman-adminopensearch.org
parameter seperator "&" in opensearch
user name
2006-07-30 09:30:54
mp3geek wrote:

> when creating a search, what replaces the parameter
seperator "&" in the
> url, I've tried
>
> as an example,
> http://www.google.c
o.nz/search?q=%26ie=utf-8
>
> rather than,
> http://www.google.c
o.nz/search?q=&ie=utf-8
>
> since any "&" will fail.

The & character must be written as & in XML.

-- 
Klaus Johannes Rusch
KlausRuschatmedia.net
http://www.atmedia
.net/KlausRusch/


=== [ Opensearch.org Discuss mailing list ]
=========================
http:
//opensearch.org/mailman/listinfo/discuss/
Unsubscribe on the web page, or discuss-unsubscribeopensearch.org
Problems?  Reach a human at mailman-adminopensearch.org
parameter seperator "&" in opensearch
user name
2006-08-01 15:59:05
Hi,

Sorry for the delayed reply, I've been on the road.

Try using XML encoding of the ampersands.  I.e:

  http://example.com/q={searc
hTerms}&start={startIndex?}

When an OpenSearch client parses the "template"
attribute of the Url
element they treat it as XML.  Thus the ampersands need to
be escaped
once for the XML parser.

Cheers,

-DeWitt


On 7/30/06, mp3geek <mp3geekgmail.com> wrote:
> when creating a search, what replaces the parameter
seperator "&" in the
> url, I've tried
>
> as an example,
> http://www.google.c
o.nz/search?q=%26ie=utf-8
>
> rather than,
> http://www.google.c
o.nz/search?q=&ie=utf-8
>
> since any "&" will fail.
>
> === [ Opensearch.org Discuss mailing list ]
=========================
> http:
//opensearch.org/mailman/listinfo/discuss/
> Unsubscribe on the web page, or discuss-unsubscribeopensearch.org
> Problems?  Reach a human at mailman-adminopensearch.org
>

=== [ Opensearch.org Discuss mailing list ]
=========================
http:
//opensearch.org/mailman/listinfo/discuss/
Unsubscribe on the web page, or discuss-unsubscribeopensearch.org
Problems?  Reach a human at mailman-adminopensearch.org
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )