ReqWriter.Write("", HttpUtility.UrlEncode(parName), HttpUtility.UrlEncode(parValue)) ![]() String parValue = parList.Substring(index02 + 1, index01 - index02 - 1) String parName = parList.Substring(0, index02) Using (StreamWriter reqWriter = new StreamWriter(request.GetRequestStream())) If (url.IndexOf("asmx") > 0 & parStartIndex > 0)Ī("#" + sla.ServiceName) Request.ContentType = "application/x-www-form-urlencoded" Request.Credentials = networkCredential(sla) HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url) ServicePointManager.CertificatePolicy = new TrustAllCertificatePolicy() End of inner exception stack trace -Īt () : Unable to connect to the remote server -> : No connection could be made because the target machine actively refused it 127.0.0.1:80Īt .DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)Īt .InternalConnect(EndPoint remoteEP)Īt (Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) ![]() Sometimes I get the following error while I was doing HttpWebRequest to a WebService.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |