cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: ftp and https header

From: Nishantha Pradeep <nishantha_at_bcsc.lk>
Date: Mon, 8 Oct 2007 18:51:24 +0600

Of course.it fairly complicated but we want another header fields (content
length also).actually what we are doing is,filltering user request via the
proxy to the internet.Iam not much familier with curl and I would be very
thank full if you can provide me a litle piece of code (example) in order to
get ftp,https headers.

On 10/8/07, Daniel Stenberg <daniel_at_haxx.se> wrote:
>
> On Mon, 8 Oct 2007, Nishantha Pradeep wrote:
>
> > I was able to send the http HEAD request and get the last-Modified field
> of
> > the header,using out put redirecting and string matching(also using curl
> and
> > help of this mailing list).The source code is attached to this mail
>
> Wow, that is so overly complicated when I already explained that libcurl
> has
> options that will extract this time for you...
>
> > I would like to know that is there any way to get the ftp header and
> https
> > header using curl.
>
> Yes, CURLOPT_HEADER or just set a header callback.
>
> --
> Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
>
Received on 2007-10-08