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

GetHttp

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)


Returns

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.

Parameters

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

Connect with Crownpeak