Jump to content

Send NO headers...


aximbigfan

Recommended Posts

Basically, it is an experiment to test and see if PHP scripts on different servers can communicate over HTTP. The PHP script that is receiving doesn't use the headers at all, they just get in the way of the data that needs to be read. The PHP on the receiving end sees the data as a text document, and the headers are at the top.

 

Chris

Link to comment
https://forums.phpfreaks.com/topic/103663-send-no-headers/#findComment-530836
Share on other sites

An HTTP response would look sort of like this:

 

HTTP/1.1 200 OK
Date: Thu, 01 May 2008 13:21:26 GMT
Server: Apache/2.2.3 (CentOS)
Content-Length: 1542
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
*snip*

 

The headers end after the first empty line.

Link to comment
https://forums.phpfreaks.com/topic/103663-send-no-headers/#findComment-530977
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.