How can I send user customized http request headers by symbian http stack?
e.g:
---------------------------------
GET ... HTTP/1.1
Host: ...
User-Agent: ...
Accept: */*
Pragma: No-Cache
Cache-Control: no-store, no-cache
Connection: Close
X-Product-Version: 6.0.2800.1006
---------------------------------
See the above example, the last header(X-Product-Version) is user-customized one, how can i send it?
I found HttpExampleClient sample code use
"void CHttpClient::SetHeaderL(RHTTPHeaders aHeaders, TInt aHdrField, const TDesC8& aHdrValue)"
to set http request headers. However, the "aHdrField" and "aHdrValue" both correspond to the value in a pre-defined StringPool, which only contains standard http elements. I dont know how to send the none-standard one. Can you help me?
Thank you!
Re: How to send customized(none-standard) HTTP request headers?
2007-06-01, 14:11#2