Areas > Languages > VBA to v. 6
Areas > VBA > POST http method
Sometimes you have to send some forms to a web site without user interaction. Internet explorer has a navigate method, which lets you send GET and POST request with data to any URL. Next functions are samples of a POST request which sends POST form data.
For example, you have next form:
<Form Action=http://127.0.0.21/faccept.asp Method=Post> <Input Name=FirstName Value=Franta> <Input Name=LastName Value=Vomacka> <Input Name=Email Valuefirstname.lastname@example.org> <Input Type=Submit> </Form>Next VBA code simulates same submit of the form using IE
for 'Send form data using IE without user interaction - automated POST' article
Copyright and use this code
The source code on this page and other samples at https://www.motobit.com/tips/ are a free code, you can use it as you want: copy it, modify it, use it in your products, ...
If you use this code, please:
1. Leave the author note in the source.
2. Link this sample from you page.
<A Href="https://www.motobit.com/tips/detpg_sendfrmie/" Title="Lets you send form data (field names and values) as a POST request using internet explorer, it is automated post, without asistence of user." >Send form data using IE without user interaction - automated POST</A>
Do you like it? Rate me on LinkedIn
© 1996 - 2019 Antonin Foller, Motobit Software | About, Contacts