If ( ourUri->Equals( myWebResponse->ResponseUri ) )Ĭonsole::WriteLine( "\nRequest Url : ", url, myWebResponse.ResponseUri) Use "ResponseUri" property to get the actual Uri from where the response was attained. WebResponse^ myWebResponse = myWebRequest->GetResponse() Send the 'WebRequest' and wait for response. WebRequest^ myWebRequest = WebRequest::Create( url ) Create a 'WebRequest' object with the specified url. A string representing the target URL is used as the constructor parameter. The following example uses Create to instantiate an HttpWebRequest instance. NET for Windows Store apps or the Portable Class Library, catch the base class exception, FormatException, instead. The URI specified in requestUriString is not a valid URI.
0 Comments
Leave a Reply. |