|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
Confirmed User
Join Date: Sep 2001
Posts: 553
|
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! |
|
|
|
|
|
#2 |
|
Confirmed User
Join Date: Oct 2002
Location: European Union
Posts: 1,752
|
Some php scripting will do it. Do a search on hotscripts.com
|
|
|
|
|
|
#3 |
|
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
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. |
|
|
|
|
|
#4 |
|
Zph7YXfjMhg
Industry Role:
Join Date: Nov 2002
Location: In Your Skull
Posts: 15,334
|
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.. |
|
|
|
|
|
#5 | |
|
MFBA
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
Confirmed User
Join Date: Sep 2001
Posts: 553
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Confirmed User
Join Date: Sep 2001
Posts: 553
|
;)
|
|
|
|
|
|
#8 |
|
Confirmed User
Join Date: Dec 2001
Location: Malibu
Posts: 3,817
|
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; |
|
|
|