hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ortwin Glück <ortwin.glu...@nose.ch>
Subject Re: setRequestHeader, GetMethod, non-HTTP
Date Wed, 07 Jul 2004 06:02:30 GMT

> Is there a way to set non HTTP headers, i.e. if I set XYZ I want to 
> receive XYZ on the server? 
> I tried setting the 
> headers using GetMethod class's setRequestHeader method. 

This is the way to go.

>  Apparently I
> receive them as HTTP headers on the server (i.e.on setting XYZ
> I receive HTTP_XYZ on the server.). 

If you set XYZ, then XYZ will be sent over the network.

I guess you are using a CGI interface on that server. So you need to 
handle the translation yourself. Nothing we can do here I fear.

Ortwin Glück

  NOSE applied intelligence ag

  ortwin glück                      [www]      http://www.nose.ch
  software engineer
  hardturmstrasse 171               [pgp id]           0x81CF3416
  8005 zürich                       [office]      +41-1-277 57 35
  switzerland                       [fax]         +41-1-277 57 12

To unsubscribe, e-mail: commons-httpclient-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-httpclient-dev-help@jakarta.apache.org

View raw message