Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form submitted by a script instead of a user 1

Status
Not open for further replies.

refulgent

IS-IT--Management
Jun 12, 2001
24
US
Hi Everyone,

I am wondering if it is possible to write a script that will submit a form that it doesnt necesserily have control of. For examle if i want to do google search for apples, this script will submit the google form with a keyword 'apple' and show only results, instead of me going to google page and submitting the form manually.

Is such thing possible to do?

Thanks in advance,

Refulgent
 
See LWP docs....

Code:
#!/usr/local/bin/perl
use LWP::Simple;
$url = '[URL unfurl="true"]http://www.perl.com/';[/URL]
$response = get($url);
print "$response\n";

You can get a lot more control of the request if you use some of the other LWP tricks...... check out the docs...

perldoc LWP -return- 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Thanks man! It seems exactly what i was looking for
 
glad to help 'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top