Palooo Posted July 10, 2009 Share Posted July 10, 2009 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(); Link to comment https://forums.phpfreaks.com/topic/165491-how-to-post-an-input-value-using-curl-and-php/ Share on other sites More sharing options...
supermerc Posted July 10, 2009 Share Posted July 10, 2009 <?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); ?> Link to comment https://forums.phpfreaks.com/topic/165491-how-to-post-an-input-value-using-curl-and-php/#findComment-872915 Share on other sites More sharing options...
thebadbad Posted July 10, 2009 Share Posted July 10, 2009 Please show the code you're using to filter the other sites. You should be able to filter them all at once. Link to comment https://forums.phpfreaks.com/topic/165491-how-to-post-an-input-value-using-curl-and-php/#findComment-872946 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.