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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 06-10-2003, 01:36 AM   #1
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
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!
Nat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-10-2003, 01:46 AM   #2
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
Some php scripting will do it. Do a search on hotscripts.com
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-10-2003, 01:51 AM   #3
Why
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.
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-10-2003, 01:51 AM   #4
The Truth Hurts
Zph7YXfjMhg
 
The Truth Hurts's Avatar
 
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..
The Truth Hurts is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-10-2003, 01:59 AM   #5
Why
MFBA
 
Industry Role:
Join Date: Mar 2003
Location: PNW
Posts: 7,230
Quote:
Originally posted by The Truth Hurts
whateverelse=natlovesthecock
Why is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-10-2003, 02:21 AM   #6
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-10-2003, 07:42 AM   #7
Nat
Confirmed User
 
Join Date: Sep 2001
Posts: 553
;)
Nat is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 06-10-2003, 07:54 AM   #8
FuqALot
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;
FuqALot is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.