?
Solved

Automate Web Form Submission Using Bot

Posted on 2009-05-15
2
Medium Priority
?
709 Views
Last Modified: 2013-12-26
We have been using an older ASP script for some time to automate the process of extracting data from a paid subscription site that we need to check frequently for updates.  The owner of the site has recently updated it to use ASP.NET (previously they were using asp 2.0) and now it appears that postbacks are not working anymore as some element of ASP.NET is preventing us from properly submitting data to the website's forms using http post.  Where in the past we were able to script the login to the site and the action of setting up a search by posting data to the web site forms, we can no longer do so.  The question is, what are our options for automating this process?  I'm thinking there must be some way to develop a bot application that will impersonate a browser session rather than simply posting the data to their forms in a script but I'm not even sure where to start.  Does VBScript or Wscript include a browser object that can be accessed programmatically?   I already have the code that parses the data returned from the search so it would be simple enough to modify that to read from a file output that could be saved from some new "bot" application that logs into the site and extracts the search results automatically.  
0
Comment
Question by:emilysam
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
CyberSimon earned 1500 total points
ID: 24509883
You can use the InternetExplorer.Application object to script the form and get the results.

Here's an example:
http://www.eggheadcafe.com/articles/20011215.asp
0
 

Author Closing Comment

by:emilysam
ID: 31582088
Thanks for link.  I was hoping to get some feedback as to the best way to accomplish this task.  I will explore the suggested solution.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question