Solved

Automate Web Form Submission Using Bot

Posted on 2009-05-15
2
677 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
2 Comments
 

Accepted Solution

by:
CyberSimon earned 500 total points
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now