Jump to content

POST / Header


jimmyo

Recommended Posts

Hey Try This!

<?php
$data = array ('foo' => 'bar', 'bar' => 'baz');
$data = http_build_query($data);
header('Location: http://www.example.com/test.php');
header("Method: POST\r\n");
header ( "Content-type: application/x-www-form-urlencoded\r\n" ); 
header('Content-Length: ' . strlen($data) . "\r\n");
header('Content:'.$data); 
?>

Link to comment
https://forums.phpfreaks.com/topic/147900-post-header/#findComment-776250
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.