curl-users
Re: Curl command line option wont work for escaping url parsing
Date: Mon, 27 Nov 2006 18:35:02 -0600
On 11/27/06, Sharma, Amit <asharma5_at_lehman.com> wrote:
>
>
> hi All,
> I am tried a few combinations to the URL using curl command line tool
> and am not able to get through.
> Appreciate any help in this regard.
>
>
> I am trying to fetch some data from a URL of the form:
> http://example.com/get/demo/product.do?search=GetHoliday&Month=December&
> result=xml
>
> When I use the browser, I am able to successfully pull the result from
> the remote site.
> However, when I use Curl command line, the curl tool truncates the url
> to
> http://example.com/get?demo/product.do?search=GetHoliday
>
> So basically everything after & is ignored by the curl command line
> tool.
In a unix system of any kind, the & character makes the shell run the
command as a background process. Try putting quotes around the whole
url.
Ralph Mitchell
Received on 2006-11-28