Results 1 to 4 of 4

Thread: [Resolved] Getting info from the web

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Location
    Warren, MI
    Posts
    209

    [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.

  2. #2
    Admodistrator |2eM!x's Avatar
    Join Date
    Jan 2005
    Posts
    3,900

    Re: Getting info from the web

    VB Code:
    1. Dim Inet As New Net.WebClient
    2.         Dim SR As New IO.StreamReader(Inet.OpenRead("http://vbforums.com/showthread.php?t=398154"))
    3.         Debug.Print(SR.ReadToEnd)

    This reads this exact topic

  3. #3
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    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

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jul 2005
    Location
    Warren, MI
    Posts
    209

    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
  •  



Click Here to Expand Forum to Full Width