cURL / Mailing Lists / curl-library / Single Mail

curl-library

URL containing spaces/white space

From: <centrio_at_gmail.com>
Date: Mon, 17 Aug 2009 09:39:24 +0000

Hi,
I wanted to know if I use easy handle and call

curlEasyStatusCode = curl_easy_setopt(curlEasyHandle,
CURLOPT_URL, url.c_str());

url is a string.

and if my url contains white spaces at the end, will it cause any
connection failures?? Or curl will ignore the whitespaces
at the end and do it correctly. I found out that the white spaces at the
beginning of a URL create problem in identifying the
protocol.

But when I tried putting white spaces at the end of URL, they succeded
sometimes and sometimes failed.

Please let me know the behaviour incase of white spaces at the end of a URL.

Thanks you.
Regards
Shivanand
Received on 2009-08-17