curl-library
RE: Port from URI is not taken
Date: Thu, 30 Aug 2012 20:46:28 +0000
> Date: Thu, 30 Aug 2012 22:38:50 +0200
> From: daniel_at_haxx.se
> To: curl-library_at_cool.haxx.se
> Subject: RE: Port from URI is not taken
> 
> On Thu, 30 Aug 2012, Sidde Gowda wrote:
> 
> >>> Using port 80, I am getting the html content instead of intended file.
> >>
> >> Using a proxy? Otherwise, can you please show us a complete example code 
> >> that repeats this problem for you. Which libcurl version on what OS?
> 
> >    curl_rc = curl_easy_setopt(curl, CURLOPT_PORT, port);
> >    /* ASSERT_CLASS_LOGICAL */
> >    nv_assert(curl_rc == CURLE_OK, "PORT failed %d", curl_rc);
> 
> So you set the port yourself. I assume that your code just sets port 80 there.
> 
> -- 
> 
>   / daniel.haxx.se
No. Since it did not work by default, I am deriving port myself from uri in resolve function and pass it back
-Sidde
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette:  http://curl.haxx.se/mail/etiquette.html
                                               
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-30