S
SM
Hi,
I have an issue with passing parameter values to an http call.Please find
the code segment below
string sUrl = "http://mywebw.uweb.uif.com/Request_Handler/RequestHandler?";
sUrl = sUrl + "okaction=get_distribution_list&er_title=" + "yters&RM orang
Committee.ikin" + "&cn=" + "(e-mail address removed)";
httpReq = (HttpWebRequest)WebRequest.Create(sUrl);
//httpReq.Timeout = 10000;
//WebRequest wr = WebRequest.Create(sUrl1);
httpReq.Credentials = CredentialCache.DefaultCredentials;
httpRes = (HttpWebResponse)httpReq.GetResponse();
Stream st = httpRes.GetResponseStream();
sr = new StreamReader(st , Encoding.UTF8);
this http call should read the url with the given parameters and return a
control number, however , it doesn't
return the control number because parameter er_title has "&" in the value
"yters&RM orang Committee.ikin"
and pass just "yters" to the destination web site.
Let me know if anybody faced this issue before and knows how to resolve.
I have an issue with passing parameter values to an http call.Please find
the code segment below
string sUrl = "http://mywebw.uweb.uif.com/Request_Handler/RequestHandler?";
sUrl = sUrl + "okaction=get_distribution_list&er_title=" + "yters&RM orang
Committee.ikin" + "&cn=" + "(e-mail address removed)";
httpReq = (HttpWebRequest)WebRequest.Create(sUrl);
//httpReq.Timeout = 10000;
//WebRequest wr = WebRequest.Create(sUrl1);
httpReq.Credentials = CredentialCache.DefaultCredentials;
httpRes = (HttpWebResponse)httpReq.GetResponse();
Stream st = httpRes.GetResponseStream();
sr = new StreamReader(st , Encoding.UTF8);
this http call should read the url with the given parameters and return a
control number, however , it doesn't
return the control number because parameter er_title has "&" in the value
"yters&RM orang Committee.ikin"
and pass just "yters" to the destination web site.
Let me know if anybody faced this issue before and knows how to resolve.