Problem WebClient RRS feed

  • Question

  • User-398318956 posted

    Sorry for my English!

    I am using the WebClient class to try to get a piece of a page on facebook. It turns out that the code works perfectly with other pages, but when I put the url of facebook, returns a page stating that need to update your browser. Informing the url of other sites works perfectly, but with the facebook url the error occurs. Is there a way to fix this problem?
    Below the code I'm using:
    Dim obj As New System.Net.WebClient
    Dim b As Byte ()
    Dim x As Byte
    Dim sb As New System.Text.StringBuilder
    Dim VarURL As String = Server.UrlEncode (TextBox1.Text)
    b = obj.DownloadData (VarURL)
    For Each x In b
         sb.Append (Chr (x))
    When I insert the URL: "https://www.facebook.com/" and check the result in the variable sb, I see that returns a page asking to update my browser. With other pages return the correct content of the site.

    Thursday, February 5, 2015 4:06 PM