webresponse

  • Thread starter Thread starter catchanu
  • Start date Start date
C

catchanu

Hi friends,
I have a question on why webresponse() is taking 5 seconds to fetch the
data.

This is my code.

Dim req As WebRequest = WebRequest.Create(reportCall)
Dim resp As WebResponse = req.GetResponse()

my report call is "http:\\localhost\\.asp?xsl"

everything is okay but when it comes to "req.GetResponse()" it takes 5
seconds to read the URL?

Could somebody tell me how do i make it fast. thanks
 
Sorry this is the repeat of the same,
I have a question on why webresponse() is taking 5 seconds to fetch the

data.


This is my code.


Dim req As WebRequest = WebRequest.Create(reportCall)
Dim resp As WebResponse = req.GetResponse() ------------1
streamData = New StreamReader(resp.GetResponseStream(),
Encoding.Default)--------2

my report call is "http:\\localhost\\.asp?xsl"


everything is okay but when it comes to "req.GetResponse() or
StreamReader(resp.GetResponseStream(), Encoding.Default)" it takes 5
seconds to read the URL?

I am not sure whether 1 or 2 taking time

Could somebody tell me how do i make it fast. thanks
 
This actually works at all? "localhost" means your actual device, so unless
your device has a web server on it, it should always fail.

--
Chris Tacke
Co-founder
OpenNETCF.org
Has OpenNETCF helped you? Consider donating to support us!
http://www.opennetcf.org/donate
 
Back
Top