john_bboy7 Posted August 26, 2008 Share Posted August 26, 2008 i am try to submit a form but nothing happens. :-\ Here is my code: <?php function cURL($url,$header,$cookie,$p) { $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, $header); curl_setopt($ch, CURLOPT_NOBODY, $header); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_COOKIE, $cookie); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); if($p){ curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $p); }; $result = curl_exec($ch); curl_close($ch); if($result){ return $result; }else{ return curl_error($ch); }; }; $auth = cURL("http://rapidshare.com/files/140319847/Worms_3d_Sega_Blue.jpg", 0, null, null); echo $auth; ?> It acually opens this link = http://rapidshare.com/files/140319847/Worms_3d_Sega_Blue.jpg It will show rapidshare page where we can see two buttons. and there is a submit button of "free User". I want to press that button so it goes to the download page. Anyone here knows how to post it? Link to comment https://forums.phpfreaks.com/topic/121450-submit-form/ Share on other sites More sharing options...
Ken2k7 Posted August 26, 2008 Share Posted August 26, 2008 Not sure, but I will guess you have to send a post data of field name "dl.start" and with value "Free". Link to comment https://forums.phpfreaks.com/topic/121450-submit-form/#findComment-626321 Share on other sites More sharing options...
john_bboy7 Posted August 26, 2008 Author Share Posted August 26, 2008 Not sure, but I will guess you have to send a post data of field name "dl.start" and with value "Free". Can you help me a bit? ??? Here is my try: $auth = cURL("http://rapidshare.com/files/140319847/Worms_3d_Sega_Blue.jpg", 0, null, "dl.start=free"); Not working Link to comment https://forums.phpfreaks.com/topic/121450-submit-form/#findComment-626348 Share on other sites More sharing options...
john_bboy7 Posted August 26, 2008 Author Share Posted August 26, 2008 Any one? :-\ :-\ Link to comment https://forums.phpfreaks.com/topic/121450-submit-form/#findComment-626372 Share on other sites More sharing options...
john_bboy7 Posted August 26, 2008 Author Share Posted August 26, 2008 I also found one more thing. there is no name for this value. And the input value = "Free user" So how am i suppose to post it as it is having no name id? ??? ??? Link to comment https://forums.phpfreaks.com/topic/121450-submit-form/#findComment-626476 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.