NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: alex.kolaric on May 25, 2009, 08:12:22 AM

Title: How to populate web form on some site and submit it
Post by: alex.kolaric 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
Title: Re: How to populate web form on some site and submit it
Post by: Bruce 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

Title: Re: How to populate web form on some site and submit it
Post by: alex.kolaric on May 26, 2009, 01:06:57 AM
Thanks for the reply Bruce.

Regards,
Alex
Title: Re: How to populate web form on some site and submit it
Post by: rjolda 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
Title: Re: How to populate web form on some site and submit it
Post by: alex.kolaric 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