• 26-11-2013, 19:07:33
    #1
    Reveloper
    Merhaba

    <form method="post" action="gonder.php">

    <input type="text" name="yazi" placeholder="yazı" />
    <input type="submit" value="gonder" />
    </form>

    gonder.php içinde tekrardan başka bir siteye post edicek bu veriyi?

    *ekstra hidden bilgiler girilmesi gereklide içine o yüzden
  • 26-11-2013, 19:15:34
    #2
    curl post işinizi görürmü?

    <?php
    $ch = curl_init();
    curl_setopt ($ch, CURLOPT_URL, 'post edilecek adres'); 
    curl_setopt ($ch, CURLOPT_POST, 1); 
    curl_setopt ($ch, CURLOPT_POSTFIELDS, 'postname=postvalue&postname2=postvalue2');
    curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); 
    $store = curl_exec ($ch);  
    curl_setopt($ch, CURLOPT_COOKIEFILE, 'dosya.txt');
    curl_setopt($ch, CURLOPT_URL, "post edilecek adres");
    curl_close ($ch);
    ?>
  • 26-11-2013, 20:18:06
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    @Burti;

    Buyur;
    <?php
    	
    	if($_POST) {
    		
    		header("Content-Type: text/plain; charset=UTF-8");
    		
    		$URL = "http://httpbin.org/post"; #@pass
    		
    		$post_fields = "";
    		
    		$post_field_keys = array_keys($_POST);
    		$post_field_values = array_values($_POST);
    		
    		foreach($post_field_keys as $key => $value)
    			$post_fields .= sprintf("%s=%s&", $post_field_keys[$key], $post_field_values[$key]);
    		
    		$post_fields = rtrim($post_fields, "&");
    		
    		unset($post_field_keys, $post_field_values, $key, $value);
    		
    		$handle = curl_init();
    		
    		curl_setopt($handle, CURLOPT_URL, $URL);
    		curl_setopt($handle, CURLOPT_POST, true);
    		curl_setopt($handle, CURLOPT_POSTFIELDS, $post_fields);
    		curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
    		
    		$response = (object) array(
    			"body" => curl_exec($handle),
    			"info" => curl_getinfo($handle),
    			"error" => (object) array(
    				"no" => curl_errno($handle),
    				"message" => curl_error($handle)
    			)
    		);
    		
    		#@optional(s) [begin]
    		
    		$response->body = json_decode($response->body);
    		
    		#@optional(s) [end]
    		
    		print_r($response);
    		
    		exit; #@pass HTML
    	}
    	
    ?><!DOCTYPE html>
    <html>
    	<head>
    		<meta charset="UTF-8" />
    	</head>
    	<body>
    		<form method="post">
    			<label for="yazi">Yazı:</label>
    			<input type="text" id="yazi" name="yazi" placeholder="bi' kaç cümle bi' şeyler yaz" />
    			<button type="submit">Gönder</button>
    		</form>
    	</body>
    </html>
  • 26-11-2013, 20:53:56
    #4
    Reveloper
    saintx adlı üyeden alıntı: mesajı görüntüle
    @Burti;

    Buyur;
    <?php
    	
    	if($_POST) {
    		
    		header("Content-Type: text/plain; charset=UTF-8");
    		
    		$URL = "http://httpbin.org/post"; #@pass
    		
    		$post_fields = "";
    		
    		$post_field_keys = array_keys($_POST);
    		$post_field_values = array_values($_POST);
    		
    		foreach($post_field_keys as $key => $value)
    			$post_fields .= sprintf("%s=%s&", $post_field_keys[$key], $post_field_values[$key]);
    		
    		$post_fields = rtrim($post_fields, "&");
    		
    		unset($post_field_keys, $post_field_values, $key, $value);
    		
    		$handle = curl_init();
    		
    		curl_setopt($handle, CURLOPT_URL, $URL);
    		curl_setopt($handle, CURLOPT_POST, true);
    		curl_setopt($handle, CURLOPT_POSTFIELDS, $post_fields);
    		curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);
    		
    		$response = (object) array(
    			"body" => curl_exec($handle),
    			"info" => curl_getinfo($handle),
    			"error" => (object) array(
    				"no" => curl_errno($handle),
    				"message" => curl_error($handle)
    			)
    		);
    		
    		#@optional(s) [begin]
    		
    		$response->body = json_decode($response->body);
    		
    		#@optional(s) [end]
    		
    		print_r($response);
    		
    		exit; #@pass HTML
    	}
    	
    ?><!DOCTYPE html>
    <html>
    	<head>
    		<meta charset="UTF-8" />
    	</head>
    	<body>
    		<form method="post">
    			<label for="yazi">Yazı:</label>
    			<input type="text" id="yazi" name="yazi" placeholder="bi' kaç cümle bi' şeyler yaz" />
    			<button type="submit">Gönder</button>
    		</form>
    	</body>
    </html>
    eyvallah kardeşim
  • 27-11-2013, 23:57:11
    #5
    function lanlanlab($url,$lanlanlab){
        $ch = curl_init($url);
        curl_setopt($ch, CURLOPT_POST      ,1);
        curl_setopt($ch, CURLOPT_POSTFIELDS    ,"SID=".$lanlanlab);
        curl_setopt($ch, CURLOPT_HEADER      ,0);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER  ,1);
        $data = curl_exec($ch);
        curl_close($ch);
        return $data;
    }
    Kullanım

    $lanlan = "&baslik=$baslik&hesap=$hesap&aciklama=$aciklama&v ideo=$video&etiket=$etiket&kategori=$kategori";
    $postVeri = lanlanlab($serverimiz,$lanlan);

    $serverimiz = post gönderilcek sayfa.