Great, that is just what I needed.
On Tue, Mar 18, 2008 at 6:49 PM, RTT <[EMAIL PROTECTED]> wrote:
> This is a very simple parse solution, but works.
> HeaderList := TStringList.Create;
> HeaderList.NameValueSeparator := ':';
> HeaderList.Text := YourHeaderString; //must be a string with
> header items delimited by carriage return and line feed, as it came in
> the raw request.
> In this case you get a strings list where the names are the headers
> fields and the values are the fields data.
> you can easily consult/add/change a field.
> HeaderList.Values['Connection'] := ' Keep-Alive';
> HeaderList.Values['Transfer-Encoding'] := ' chunked';
> To transform again in raw header
> > I am looking for a way to PARSE and ALTER http request headers.
> > Currently I have the Header in a STRING, and want to ADD Headers if they
> > not EXIST.
> > I am not sure what Class to use: I have looked at
> > var
> > web : TWebRequest;
> > web := TWebRequest.Create;
> > web.Content := s; // set the Header , not even sure this is correct.
> > any help appreciated.
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
C: 076 337 4368
T: 021 880 2037
F: 021 880 2530
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be