I have a central Web Site (A) which will secure with SSL.
Other Client Sites (lets say B, C, D, E .....) will connect to this site A.
Requirement is to send a HTTPS POST request to Site A from Site B (or C,D,E.....).
Request will have parameters as
WEBSITEKEY=keyvalue;
then the Site A must give a response to this request.
Response should have a essential one parameters as,
SECUREKEY=key-value-secure;
Para1=para1value;
Para2=para2value;
Para3=para3value;
Para4=para4value;
How can I implement this response part in PHP? I'm new to SSL POST and Responses.
Later Edit,
We always send requests and get the coming response. Here I need to give the response/create the response for the client request. How can I do this in PHP? I found following code..
<?php
//process the request by fetching the info
$headers = http_get_request_headers();
$result = http_get_request_body();
//do stuff with the $headers and $result variables....
//then send your response
HttpResponse::status(200);
HttpResponse::setContentType('text/xml');
HttpResponse::setHeader('From', 'Lymber');
HttpResponse::setData('<?xml version="1.0"?><note>Thank you for posting your data! We love php!</note>');
HttpResponse::send();
?>
is this correct for send the response from my SSL enable site to normal site?