NetTalk Central

Author Topic: How to populate web form on some site and submit it  (Read 4276 times)

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
How to populate web form on some site and submit it
« on: May 25, 2009, 08:12:22 AM »
Hi,

is there any way to populate few fields on some web page form and submit such form?

thanks,
Alex

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: How to populate web form on some site and submit it
« Reply #1 on: May 25, 2009, 09:30:58 PM »
Hi Alex,

NetTalk has a web client class. Which means you can do an HTTP POST.
A POST is what happens when you press the button on  a web page.

So yes, you can create a packet which simulates someone who has entered stuff on a web page and pressed the submit button.

However if you want your user to _see_ the page itself, or fill stuff out on it, or press the button etc, and _see_ the result that is returned, then you need File Explorer. http://www.capesoft.com/accessories/fileexplorer.htm

Cheers
Bruce


alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: How to populate web form on some site and submit it
« Reply #2 on: May 26, 2009, 01:06:57 AM »
Thanks for the reply Bruce.

Regards,
Alex

rjolda

  • Sr. Member
  • ****
  • Posts: 329
    • View Profile
    • Email
Re: How to populate web form on some site and submit it
« Reply #3 on: May 27, 2009, 03:34:50 AM »
Alex,
You might find this a little easier to get your hands around if you set it up in File Explorer first - as you will be able to see the Pages and fields in the Browser and use the DOM info to get the field tags.  Once you set up your post string, then you can use Net talk alone.....
FWIW,
Ron Jolda

alex.kolaric

  • Full Member
  • ***
  • Posts: 151
  • Do it or do not, there is no try
    • View Profile
    • Email
Re: How to populate web form on some site and submit it
« Reply #4 on: May 27, 2009, 06:51:06 AM »
Thanks for the reply Ron. I downloaded demo app from CapeSoft site. There is a weird problem with the site I want to be able to automate submit for - it can't be loaded from file explorer browser. It is not HTTPS and other sites load just fine.

cheers,
Alex