UNIX Socket FAQ

A forum for questions and answers about network programming on Linux and all other Unix-like systems

You are not logged in.

  • Index
  • » C
  • » httpget_skip_the_header

#1 2010-02-05 05:45 PM

flashback_007
Member
Registered: 2009-11-23
Posts: 11

Re: httpget_skip_the_header

hi all

i have just compiled my own httpget in c & works without any errors
&
i just want to now if there is a trick to skip downloaded files head  like..

------------------
HTTP/1.1 200 OK
Connection: close
Date: Fri, 05 Feb 2010 16:28:22 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 13
Content-Type: text/html
Set-Cookie: ASPSESSIONIDQCBBSBTR=FGHALDOBACMGPOPCDHHOKNBF; path=/
Cache-control: private
--------------------

How do i skip the Head bit of the incoming data?

i can do it with my own cut_header() function but thats two proccess & instead of me skiping the header while downloading can do the trick & how can i detect the incoming header files end & write the actual incoming data by skipping the header to a file?


any one?

Offline

#2 2010-02-05 09:26 PM

RobSeace
Administrator
From: Boston, MA
Registered: 2002-06-12
Posts: 3,839
Website

Re: httpget_skip_the_header

Offline

#3 2010-02-06 04:40 PM

flashback_007
Member
Registered: 2009-11-23
Posts: 11

Re: httpget_skip_the_header

(Solved)
thank you RobSeace

Last edited by flashback_007 (2011-08-04 10:53 AM)

Offline

  • Index
  • » C
  • » httpget_skip_the_header

Board footer

Powered by FluxBB