D
David
I have the following two button click procedures to retrieve html code from
web sites.
The code for Button1 seems to work fine. Button2 works fine for
http://yahoo.com but not for http://groups.google.com. When trying the
Google site, iContentLength is -1 after it is set to
myResponse.ContentLength. Any ideas why? If I uncomment the lines in
Button2's event handler then that part of it will work with Google's site,
using the same technique that Button1 uses.
I'm trying to learn VB while working on this so that's why I'm interested in
why Button2 works for some sites but not for all...
It seems like iContentLength = myResponse.ContentLength doesn't work
properly. I am not sure how to look at the myResponse stream object using
the debugger so I don't know how to make heads or tails of this.
Thanks for any help,
David
web sites.
The code for Button1 seems to work fine. Button2 works fine for
http://yahoo.com but not for http://groups.google.com. When trying the
Google site, iContentLength is -1 after it is set to
myResponse.ContentLength. Any ideas why? If I uncomment the lines in
Button2's event handler then that part of it will work with Google's site,
using the same technique that Button1 uses.
I'm trying to learn VB while working on this so that's why I'm interested in
why Button2 works for some sites but not for all...
It seems like iContentLength = myResponse.ContentLength doesn't work
properly. I am not sure how to look at the myResponse stream object using
the debugger so I don't know how to make heads or tails of this.
Thanks for any help,
David