Automatically click web page links or submission buttons

I'm assuming this is best done with an HTTP control of some sort, but I would like to have my visual basic application go to a web site submission form that I've created, fill it out, then submit it. Anyone have any ideas?
microfleetAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
You can do this with the Microsoft Internet Control.  To add this to your project, right-click the toolbar (the window with the textbox, listbox, label, etc.) and select "Components..."

Then select "Microsoft Internet Control" from the list.

You can then do something like this:


    WebBrowser1.Navigate "http://www.yourdomain.com/cgi-bin/showvar.cgi?Arg1=aaa&Arg2=bbb"


Where everything in the quotes before the question mark is the URL and everything after the question mark are arguments to be passed.

The format for an argument is:

   arg=value

You separate multiple arguments with a & (ampersand character).

Hope this helps!


Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mcriderCommented:
To give you an example, let's say this is the html code on the form you're filling out:

      <form method="get" action="/cgi-bin/myscript.cgi">
      <input type="text" name="uname" value="">
      <input type="text" name="upwd" value="">
      <input type="submit" name="Login" value="Login">
      </form>


This is what you could do:

Dim UserName As String
Dim Password As String

UserName = "mcrider"
Password = "noneofyourbusiness"

WebBrowser1.Navigate "http://www.yourdomain.com/cgi-bin/myscript.cgi?uname=" & UserName & "&upwd=" & Password & "&Login=Login"


Cheers!




0
microfleetAuthor Commented:
I'll give you the points only because I think I have asked the wrong question. I have reposted the question I most wanted. As for your reply, yea it is a good way to do it, I on the hand POST to a perl script in about the same way. You can use the navigate method, and pass the URL headers and information, then POST it to the script. However, like I said I didn't ask the right thing so with this question, I'm not going to get the right answer, but since you knew a good answer, I'll pass the points.
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

mcriderCommented:
Ok, Please grade generously....


Cheers!
0
microfleetAuthor Commented:
Well I thought I already did this, but here goes again
0
mcriderCommented:
Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.