Jump to content

Http web request

- - - - -

  • Please log in to reply
1 reply to this topic

#1
martin2311

martin2311

    Learning Programmer

  • Members
  • PipPipPip
  • 32 posts
guys m not getting the source code of the web page i checked many pages there is some small error in code i guess i can`t find

 Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://www.google.com")

        Dim response As System.Net.HttpWebResponse = request.GetResponse


        Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())




        Dim source As String = sr.ReadToEnd


        source = TextBox1.Text


#2
CommittedC0der

CommittedC0der

    Speaks fluent binary

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,565 posts
Your actually missing something very simple, but I didnt even notice it at first.
[COLOR=red] TextBox1.Text = source[/COLOR]
~ Committed.
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users