Jump to content

Submit form.


john_bboy7

Recommended Posts

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

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:  :P

 

$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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.