ProxyWrapper.AddHttpHeader

Adds an HTTP header to the current request.

Note that if you make multiple requests on a connection and you need to use different headers on each request you should call ClearHeader() and then reset headers for each request. Otherwise the headers are shared amongst requests.

public void AddHttpHeader(string key,
	string value);

Parameters

string key
Http Header key

string value
The string value of the header to add

Example

loProxy.oService.AddHeader("Custom-Header","My Header Value")

See also:

Class ProxyWrapper

© West Wind Technologies, 2004-2020 • Updated: 04/08/11
Comment or report problem with topic