PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
webresponse
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
webresponse
![]() |
webresponse |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

