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
Solved

Automate Web Form Submission Using Bot

Posted on 2009-05-15
2
689 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
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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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…
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

840 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