GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   automatic form submit code?? (https://gfy.com/showthread.php?t=141567)

Nat 06-10-2003 01:36 AM

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!

Calvinguy 06-10-2003 01:46 AM

Some php scripting will do it. Do a search on hotscripts.com

Why 06-10-2003 01:51 AM

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.

The Truth Hurts 06-10-2003 01:51 AM

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..

Why 06-10-2003 01:59 AM

Quote:

Originally posted by The Truth Hurts
whateverelse=natlovesthecock


Nat 06-10-2003 02:21 AM

Quote:

Originally posted by The Truth Hurts
[Bif it works... rinse and repeat.
if not, ask someone who's not half asleep.. [/B]
Anyone not half asleep?

Nat 06-10-2003 07:42 AM

;)

FuqALot 06-10-2003 07:54 AM

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