curl-library
RE: Port from URI is not taken
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 30 Aug 2012 23:03:04 +0200 (CEST)
Date: Thu, 30 Aug 2012 23:03:04 +0200 (CEST)
On Thu, 30 Aug 2012, Sidde Gowda wrote:
> You are right. I am not saying that libcurl has issues. I sent the options
> that I am using in the previous email. Did you notice any strange in that
> code related to using curl options?
Nope.
> But for some reasons, I am only getting the webpage with content html. I
> also tried to download rfx from www.ietf.org but again got the home page. Do
> I need to use any special options to get the file? Thanks for replying on
> this issue.
You get exactly the resource you ask for. The URL you pass to libcurl gets
converted to a HTTP request and that's what the server gets and responds to.
libcurl doesn't know any difference between "the HTML" and "the file".
-- / daniel.haxx.se ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.htmlReceived on 2012-08-30