Jump to content

How to post an input value using cURL and PHP


Palooo

Recommended Posts

Hello i am newbie here and want some help from experts....

 

I have a link checker script in which i can bypass or kill some url shorten sites links like anonym.to, lix,in etc....Now i am trying to kill another url shorten site link....its secured.in but i am unable to find any method to kill it...

 

After all tries i could only analyze that it need only one input value to be posted through a form...please help me correcting it...

 

Her is the code currently i am trying.....

 

	   if(eregi("^(http)\:\/\/(www\.)?secured\.in\/", $link)){
			  $post = 'dl.start='.Free.';
			  preg_match(curl($link, $post), $match);
			  $link = $match[1];
				if($kl == 1)
				echo"<div class=\"n\"><a href=\"$link\"><b>$link</b></a></div>\n";
				flush();

 

 

 

<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://site.com');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, 'field=whatyouwanttopost');
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
curl_close ($ch);
?>

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.