TBD.my

Full Version: Webrequest vb.net problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Salam semua .. saya perlukan pertolongan semua untuk bantu saya dalam httpwebrequest di dalam vb.net harap ade yg sudi membantu Big Grin

Codenya dibawah ini .. code ini seperti tidak berfungsi ..

Code:
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("https://graph.facebook.com/" & ListBox1.SelectedItem & "/photos?url=" & TextBox1.Text & "&method=POST&message=" & TextBox2.Text & "&access_token=" & TextBox3.Text & "")
        
Dim response As System.Net.HttpWebResponse = request.GetResponse()

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

        Dim newestversion As String = sr.ReadToEnd()
        Dim currentversion As String = Application.ProductVersion

        If newestversion.Contains("post_id") Then
            ListBox1.SelectedIndex += -1
            ListBox2.Items.Add(ListBox1.SelectedItem)
            ListBox1.SelectedIndex += 1
        Else
            MessageBox.Show("Failed!")
        End If
what problem u got?