Documentation > CMS Template API Library > HttpParams > AddHeader(String)
AddHeader
Adds the given header to the headers list.
public System.Void AddHeader(String)
Parameters
Name | Description | Type |
---|---|---|
header | The header. | System.String |
Code Example
C#
Sample:
string url = "http://www.crownpeak.com"; PostHttpParams httpParams = new PostHttpParams(); httpParams.PostData = "_username=test&_password=_test"; httpParams.AddHeader("Accept-Encoding: gzip,deflate"); PostHttpResponse response = Util.PostHttp(url, httpParams);