Hi All,
I am trying to access the below mentioned URL by using below code and i am getting error saying Unauthorzed. Can you guys help me whether below code what i have
coded has any issues?
public static void Main(string[] args)
{
string requestUrl = "http://54.215.14.255/services/user/initiateRegistration";
HttpWebRequest request = WebRequest.Create(requestUrl) as HttpWebRequest;
// StringBody webId = new StringBody("99936160");
HttpRequestHeader emailId = new HttpRequestHeader();
HttpRequestHeader rrNumber = new HttpRequestHeader();// "";
request.Headers.Add("emailId", "rdubey3@sapient.com");
request.Headers.Add("rrNumber", "673484387");
WebResponse rer= request.GetResponse();
}
...
Go to the complete details ...