cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Curl and https

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Fri, 18 Jan 2008 09:26:06 -0600

On Jan 18, 2008 9:13 AM, <Thorsten.Moeller_at_atosorigin.com> wrote:

> Hi Daniel,
>
> thanks for your reply. Meanwhile i made it through the proxy with just
> defining the proxy without ntlm. But now i have a problem with the get
> request, which seems to be cut by curl.
>
> What i sent is : *
> https://webservice.te.test.com/instat/customer/index.php?opt=download&u=USERNAME&p=PASSWORD&year=2008&month=01&day=15
> *<https://webservice.te.test.com/instat/customer/index.php?opt=download&u=USERNAME&p=PASSWORD&year=2008&month=01&day=15>
>
> Curl strips off the sever, which is ok and issues following get command:
> /instat/customer/index.php?opt=download
>
> This what i can see on the console. The rest of the url ist cut off at the
> first "&". So, user, pass and parameters are not supplied and therefore i
> just receive the page, requesting the data.
>
> Do i have to put the URL in quotation marks?? Modify the curl command??
> Anything else??
>

Yep, you should put it in quotes. If you don't quote that url, any Unix
system will see the '&' character and execute everything to the left as a
background job.

Ralph Mitchell
Received on 2008-01-18