W3C home > Mailing lists > Public > www-lib@w3.org > January to March 1999

Re: Extra headers for POST

From: olga <olga@goliath.eai.com>
Date: Tue, 05 Jan 1999 18:13:45 -0600 (CST)
Message-ID: <XFMail.990105181345.olga@eai.com>
To: Henrik Frystyk Nielsen <frystyk@w3.org>
Cc: www-lib@w3.org, olga@goliath.eai.com
Yes, it helped.
Thank you!
Olga.
 
On 05-Jan-99 Henrik Frystyk Nielsen wrote:
> At 11:40 1/5/99 -0600, olga wrote:
> 
>>I need to add extra headers for the POST request and it doesn't work. The
>>callback function which should generate the headers is never called. Am I
>>doing something wrong? 
> 
> Try
> 
>       HTList * generators = HTList_new();
>       HTGenerator_add(generators, post_header_gen);
>       HTRequest_setGenerator(request, generators, NO); //??? YES - NO
> 
> instead of 
> 
>>    HTList * generators = HTRequest_generator(request, &override);
>>    HTGenerator_add(generators, post_header_gen);
>>    HTRequest_setGenerator(request, generators, NO); //??? YES - NO
> 
> I must admit that this is not a nice interface. The reason for this is that
> we have been working on a real extension framework for HTTP which allows
> you to describe how a message is extended:
> 
> http://www.w3.org/Protocols/HTTP/ietf-http-ext/draft-frystyk-http-extensions
> -01
> 
> The plan is to have Eric Prud'hommeaux helping implement this shortly. If
> you can get by in the mean time then this would be the easiest. Otherwise
> we can add an association list to the request where the requester can add a
> new header name and value pair and then have the library stuff them into
> the request.
> 
> Henrik
> --
> Henrik Frystyk Nielsen,
> World Wide Web Consortium
> http://www.w3.org/People/Frystyk

----------------------------------
E-Mail: olga <olga@eai.com>
Date: 05-Jan-99
Time: 18:10:59

This message was sent by XFMail
----------------------------------
Received on Tuesday, 5 January 1999 19:10:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:28 GMT