Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Public Function method_9(string_0 As String) As String
  2. Dim httpWebRequest As HttpWebRequest = CType(WebRequest.Create(string_0), HttpWebRequest)
  3. httpWebRequest.Method = "GET"
  4. httpWebRequest.KeepAlive = True
  5. httpWebRequest.CookieContainer = Class6.cookieContainer_0
  6. httpWebRequest.UserAgent = Class6.string_10
  7. httpWebRequest.Proxy = Nothing
  8. httpWebRequest.Headers.Add("X-IG-Connection-Type", "WiFi")
  9. httpWebRequest.Headers.Add("X-IG-Capabilities", "3ToAAA==")
  10. Dim result As String
  11. Try
  12. Dim httpWebResponse As HttpWebResponse = CType(httpWebRequest.GetResponse(), HttpWebResponse)
  13. Dim streamReader As StreamReader = New StreamReader(httpWebResponse.GetResponseStream())
  14. result = streamReader.ReadToEnd()
  15. Catch ex As WebException
  16. Dim streamReader2 As StreamReader = New StreamReader(ex.Response.GetResponseStream())
  17. result = streamReader2.ReadToEnd()
  18. End Try
  19. Return result
  20. End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement