![]() |
automatic form submit code??
I am in the need of some code for linux, that will submit a form automatically.
A friend of me has a TGP, and i would like to have a crontab job set up so i submit automatically to it once every hr. All it need to send is my name, password, url for gallery, number of thumbs and description. Now i can have this stuff in a database or whatever, but i don't really know how to push the info to his server. I'm pretty sure there's no need to actually load up the form, it should work to send the data directly to his script... Anyone have any suggestions on how to do this? Thanks a lot! |
Some php scripting will do it. Do a search on hotscripts.com
|
form.cgi?var=whatever&var2=whatever&var3=whatever
just replace var1-3 with whatever variables are being passed when you submit the form... you can use wget for this i know. but that will leave a file. im sure there are other ways as well. |
I used to do this a long time ago..
assuming his script isn't too big on security, try hitting his submit script url with the variables attached in a query string. load up his form... look at the source, note the names of all the input fields.. then try to access his script sorta like: http://www.hisurl.com/cgi-bin/submitscript.cgi?name=nat&password=tgpsucks&url=ht tp://www.toomuchfreeporn.com/gallery1.html&thumbs=16&whateverelse=natlovestheco ck if it works... rinse and repeat. if not, ask someone who's not half asleep.. |
Quote:
|
Quote:
|
;)
|
Try something like this.
#!/usr/bin/perl use LWP::UserAgent; $ua = LWP::UserAgent->new; my $req = HTTP::Request->new(POST => 'http://www.site.com/submit.cgi'); $req->content_type('application/x-www-form-urlencoded'); $req->content('[email protected]&url=http://www.site.com'); my $res = $ua->request($req); exit; |
| All times are GMT -7. The time now is 11:20 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123