WebBrowser: navigate and send values with method Post

WebBrowser

How to navigate (with WebBrowser.navigate(...) ) and send values of textbox with method post


Can i have two methods  ( not with mouse)

* change the value of textbox and click in bottom (Send events to the browser (ex. Web1.Document.Forms(0).RaiseEvent(.. .))
*  the values to the headers( ) and navigate to the page


can you tell me how to do with this two ways..

thanks


Answer this question

WebBrowser: navigate and send values with method Post

  • laurie0718

         Dim postData As String = "login=" & txtLogin.Text & "&pass=" & txtPass.Text
             Dim postBytes As Byte() = Encoding.ASCII.GetBytes(postData)
            Web1.Navigate("server/login2.php", "", postBytes, "")

    and don't work 


  • WebBrowser: navigate and send values with method Post