Sorry the links seem to be truncated:

this works:
curl ... search.json?geocode=37.781157%2C-122.398720%2C15km > test.txt
this didn't work:
curl ... search.json?geocode=37.781157%2C-122.398720%2C15km%26lang=en
%26rpp=100%26page=1 > test.txt

On Dec 25, 5:08 pm, epomqo <[email protected]> wrote:
> Dear all,
>
> Merry Christmas!
>
> I just have a quick question about the URL encode when writing a cURL
> command in shell. The following command works:
>
> curlhttp://search.twitter.com/search.json?geocode=37.781157%2C-122.398720...
>
> > test.txt
>
> However, if I want to put more parameters like
> "lang=en&rpp=100&page=1" in http, I encoded "&" as "%26" in the
> following way but it didn't work:
>
> curlhttp://search.twitter.com/search.json?geocode=37.781157%2C-122.398720...
>
> > test.txt
>
> It complained that: {"error":"The within: operator requires distance
> and units of 'mi' or 'km'"} So this "%26" immediately after "15km"
> seems to cause problems. Any ideas how to fix it?
>
> Many thanks for the help!
> epomqo

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to