Results 1 to 2 of 2

Thread: Delphi, TWebBrowser, Web-Site Login?!

  1. #1
    Join Date
    Jul 2010
    Posts
    37

    Delphi, TWebBrowser, Web-Site Login?!

    I think that I already created similar topic. I didn't get the right answer. The previous replies are not working and didn't help me.

    So, I decided to express more clearly. See the screenshot for more details.

    I am still interested how to post data in TWebBrowser such as login and password.
    Attached Images Attached Images

  2. #2
    Join Date
    Dec 2007
    Posts
    1,736

    Re: Delphi, TWebBrowser, Web-Site Login?!

    you need to add "Content-Type: application/x-www-form-urlencoded" to the additionalHeaders parameter. so your code would look like this

    webBrowser1.Navigate("anysite.php", "_SELF",byte1, "Content-Type: application/x-www-form-urlencoded" );

    you might also need to change the encoding to use UTF8.

    you can use something like this

    String postdata = "u=idcode";

    System.Text.Encoding a = System.Text.Encoding.UTF8;

    byte[] byte1 = a.GetBytes(postdata);

    webBrowser1.Navigate("anysite.php", "_SELF",byte1, "Content-Type: application/x-www-form-urlencoded" );

    hope that helps you.

Similar Threads

  1. TWebBrowser popup window Problem (Delphi)
    By lucky3664 in forum Software Development
    Replies: 2
    Last Post: 06-03-2012, 11:25 AM
  2. Delphi, TWebBrowser, Centralized Window?!
    By alex198555 in forum Software Development
    Replies: 3
    Last Post: 29-07-2010, 11:21 AM
  3. Delphi, TWebBrowser & Java Scripts.
    By alex198555 in forum Software Development
    Replies: 1
    Last Post: 28-07-2010, 11:23 AM
  4. Delphi, TWebBrowser, Disable Scrollbars???
    By alex198555 in forum Software Development
    Replies: 4
    Last Post: 26-07-2010, 11:02 PM
  5. Delphi, TWebBrowser, Auto-Refresh???
    By alex198555 in forum Software Development
    Replies: 3
    Last Post: 22-07-2010, 10:41 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,675,255,457.23360 seconds with 18 queries