Documentation > CMS Template API Library > Util > GetHttp(String,GetHttpParams)


Sends a GET request to the provided URL. Can accept a set of optional GetHttpParams to override the default timeout value of 30 seconds as well as adding headers to the request.

public CrownPeak.CMSAPI.GetHttpResponse GetHttp(String,GetHttpParams)


A GetHttpResponse object which contains the response text as well as various meta data about the GET request. A Status Code of -900 is returned if a connection to the server could not be established.


url The URL. System.String
getHttpParams The HTTP params. CrownPeak.CMSAPI.GetHttpParams

Connect with Crownpeak