P
PeterK
With the code below, which I copied from the MSDN, I am getting only part of
the the web-page 'MyUrl' returned (this is a synchronoues access).
My hunch is that I have to use asynchronous access, which requires the use
of IAsynchResult - besides other things.
Does anyone have or can anybody point to code for this, please?!
TIA
Dim request As HttpWebRequest = CType(WebRequest.Create(MyUrl),
HttpWebRequest)
' Set some reasonable limits on resources used by this request
request.MaximumAutomaticRedirections =12
request.MaximumResponseHeadersLength = 12
' Set credentials to use for this request.
request.Credentials = CredentialCache.DefaultCredentials
Dim response As HttpWebResponse = CType(request.GetResponse(),
HttpWebResponse,True)
the the web-page 'MyUrl' returned (this is a synchronoues access).
My hunch is that I have to use asynchronous access, which requires the use
of IAsynchResult - besides other things.
Does anyone have or can anybody point to code for this, please?!
TIA
Dim request As HttpWebRequest = CType(WebRequest.Create(MyUrl),
HttpWebRequest)
' Set some reasonable limits on resources used by this request
request.MaximumAutomaticRedirections =12
request.MaximumResponseHeadersLength = 12
' Set credentials to use for this request.
request.Credentials = CredentialCache.DefaultCredentials
Dim response As HttpWebResponse = CType(request.GetResponse(),
HttpWebResponse,True)