Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.