cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Port from URI is not taken

From: Sidde Gowda <engowdre_at_hotmail.com>
Date: Sat, 1 Sep 2012 19:19:35 +0000

> Date: Sat, 1 Sep 2012 20:37:01 +0200
> From: daniel_at_haxx.se
> To: curl-library_at_cool.haxx.se
> Subject: RE: Port from URI is not taken
>
> On Fri, 31 Aug 2012, Sidde Gowda wrote:
>
> > I downloaded few rfcs successfully. Thanks. But when I tried to download crl
> > from ca server, the same thing did not work. Do we need to set anything
> > regarding the content type?
>
> No you don't. When you do a HTTP request with libcurl, it will get you the
> resource the URL identifies no matter what it is.
>
> I would rather guess that you're not using libcurl correctly or do some wrong
> assumptions on the data you get.
>
> > I even tried to download a jpeg image and it did not work.
>
> Again, I suspect this is rather a bug in your application.
>
> > I am wondering if the size anyway matters here.
>
> It doesn't. libcurl doesn't care about the size and will call your write
> callback over and over and over until the entire thing is transfered.
>
> --
>
> / daniel.haxx.se Hi Daniel Yeah. You are correct. The problem was when I use www.ietf.org/rfc/rfc2771.txt it used to work but when URL has special characters with querry strings such as "?" etc., my system,s CLI (security gateway) was ignoring "?" when I paste the URL from CLI (I had implemented a diag command to do this). I debugged this by capturing packets on a server interface using Wireshark. When I checked the value of get string sent both from browser and my system's CLI, I found "?" was missing. Now, I am inserting "?" from CLI and seeing no issue. I could download crl from CA server :=). Thanks for all the help from cURL mailing list. I have another question related to SSL to get the same crl over https connection. What I have understood from cURL manuals is that I need 3 certificates. One from CA, one from server we want to connect to and one for client to connect (if server needs client verification). In my setup, both CA and server are same. So, I can use same CA signed certifcate for both CA as well as server certificates but need to generate one for client. Also I have understood that i do not need anything to handle in ssl_ctx_function since libcurl do the verification. Is my understanding correct? Regards,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-09-01