webresponse

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
 
C

catchanu

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
 
C

Chris Tacke, eMVP

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top