|
-
Apr 9th, 2006, 12:31 PM
#1
Thread Starter
Addicted Member
[Resolved] Getting info from the web
Hey everyone!
I was wondering if there is a way to get some info from the internet without downloading a file.
IE, If I can ever get this version checker to work, I'm going to need it to know what version I'm on so it'll ask the web site. I only know how to do this with downloading files. Is there a way to request that information from the server?
Thanks,
Mike
Last edited by spelltwister; Apr 11th, 2006 at 11:40 AM.
-
Apr 9th, 2006, 12:37 PM
#2
Re: Getting info from the web
VB Code:
Dim Inet As New Net.WebClient
Dim SR As New IO.StreamReader(Inet.OpenRead("http://vbforums.com/showthread.php?t=398154"))
Debug.Print(SR.ReadToEnd)
This reads this exact topic
-
Apr 9th, 2006, 06:11 PM
#3
Re: Getting info from the web
That opens the file to read, and reads it, right? The way I currently do my version checkers is to just read a text file that I just manually edit with the version number inside of it. The total file is only about 3-4 bytes, so its quick and snappy to download. I didn't look to hard for what you were wanting, because I had already implemented that, but when doing a quick search a while back, I didn't find much. So I guess what I am saying is I would also like to know
-
Apr 9th, 2006, 10:44 PM
#4
Thread Starter
Addicted Member
Re: Getting info from the web
Hey,
When I plug that in it gives me an error saying that pring is not a member of system.diagnositcs.debug or something like that :-/
Any ideas?
Thanks,
Mike
[Edit]
I don't really need the print thing, I can use it fine just comparing some values, just wanted to share that with you.
Also, I forgot to say... THANKS! WORKS GREAT :-D
Last edited by spelltwister; Apr 9th, 2006 at 10:48 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|