cURL / Mailing Lists / curl-library / Single Mail

curl-library

What structure to use to hold http response (header list) ?

From: Jabka Atu <mashrom.head_at_gmail.com>
Date: Tue, 29 Jul 2008 00:15:22 +0300

I wish to store the http response a structure that i could easely accses
the contenses as in :

typedef struct

{

   char * ans ;
   char * date;
   char * server;
   char * powerdby;
   char * transfer;
   char * content_type;
   .

   .

   .

}some_header_structure;

so i wold pass that structure to a header writin opt and it will store
inside it the header list.

so i could get all relevnt info just by some_header_structure.some_value;

Thank's in advance.

-- 
---==== Jabka Atu ===---
    bsh83.blogspot.com
---=== Encryption is a way of life ===---
Received on 2008-07-28