cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Port from URI is not taken

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Aug 2012 22:38:50 +0200 (CEST)

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
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2012-08-30