cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: CURLOPT_SCOPE

From: Phil Blundell <pb_at_reciva.com>
Date: Mon, 11 Aug 2008 14:51:34 +0100

On Mon, 2008-08-11 at 17:26 +0530, Pramod Sharma wrote:
> curl_easy_setopt(curl,CURLOPT_URL ,
> "http://[fe80::212:3fff:fe55:8470%2]:80/SiteStat.xml");

You need to URL-escape the string (i.e. convert % to %25) after adding
the scope. So, try:

curl_easy_setopt(curl,CURLOPT_URL , "http://[fe80::212:3fff:fe55:8470%252]:80/SiteStat.xml");

You don't need to set CURLOPT_SCOPE if you include a scope id in your URL.

p.
Received on 2008-08-11