keiran420 Posted December 5, 2008 Share Posted December 5, 2008 Hey guys, I am a member on a computer explouts site, and this site, like many like it, has challanges... Im doing well, except for the timed challanges. Basically, before i can even begin adding in the code for each mission, i need to connect... Now i can easily use cURL or PHP to display a page, but the trouble is im not logged in... And to be quite frank, i am at a loss on how i can not only load a page, but enter my login details 1st... all automatically, and very f***ing quickly... As i say, displaying the page isn't the problem, not much point linking those few lines of code when i havn't a clue how to go about logging in... P.S. its Post data, not Get data... like it should be. Any advice on how to go about this attal would be great Quote Link to comment https://forums.phpfreaks.com/topic/135694-what-would-be-the-best-way-to-go-about-this/ Share on other sites More sharing options...
br3nn4n Posted December 5, 2008 Share Posted December 5, 2008 Hahahaha I would try asking on their forums. Quote Link to comment https://forums.phpfreaks.com/topic/135694-what-would-be-the-best-way-to-go-about-this/#findComment-707001 Share on other sites More sharing options...
waynew Posted December 5, 2008 Share Posted December 5, 2008 Em.. what is the task? Quote Link to comment https://forums.phpfreaks.com/topic/135694-what-would-be-the-best-way-to-go-about-this/#findComment-707006 Share on other sites More sharing options...
Maq Posted December 5, 2008 Share Posted December 5, 2008 You can set POST variables by doing something similar to this: curl_setopt ($ch, CURLOPT_POSTFIELDS, 'fieldname1=fieldvalue1&fieldname2=fieldvalue2'); Here's a snippet... Quote Link to comment https://forums.phpfreaks.com/topic/135694-what-would-be-the-best-way-to-go-about-this/#findComment-707013 Share on other sites More sharing options...
keiran420 Posted December 5, 2008 Author Share Posted December 5, 2008 Hahahaha I would try asking on their forums. The trouble is im doing it from a web host, not a local host... I have asked there in the past, but just never got it working... If i was coming of a local host, the simmple code i have now would work..., cookies and such.. But not like im doing here.... All i really need to know is a good way to send data to a form and submit it from a script... This has been coverd in variouse languages on the explot site, but strangly not in cURL or PHP... Maybe i should just learn python, that is apparently the best choice... just means adding another language to my brain ^^ So no simple-ish ways of doing this in php? sending and submitting form data? Quote Link to comment https://forums.phpfreaks.com/topic/135694-what-would-be-the-best-way-to-go-about-this/#findComment-707017 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.