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

Re: webresponse by catchanu

catchanu
Tue Apr 26 15:31:00 CDT 2005

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


Re: webresponse by Chris

Chris
Tue Apr 26 15:31:42 CDT 2005

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


<catchanu@yahoo.com> wrote in message
news:1114544625.543049.181370@z14g2000cwz.googlegroups.com...
> 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
>