php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #3866 stripheaders
Submitted: 2000-03-18 20:14 UTC Modified: 2000-08-17 10:46 UTC
From: evan@php.net Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0 Latest CVS (18/03/2000) OS: RH 6
Private report: No CVE-ID: None
 [2000-03-18 20:14 UTC] evan@php.net
A stripheaders() function would be handy for taking the headers out of a string when you open a socket using fsockopen() and then read in the data with fgets().

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-08-06 17:37 UTC] sli@php.net
Headers != HTML Tags
 [2000-08-06 17:38 UTC] sli@php.net
Reopened request
 [2000-08-17 10:46 UTC] hholzgra@php.net
as you only have to read up to the first empty line
to find the bonudary between headers and content
a special function should not be needed
 [2003-08-17 23:08 UTC] a at b dot c dot de
Besides, the division between "headers" and "content" is fundamentally dependent on what protocol is being used over the socket (and that includes whether or not there are "headers" or "content"). I really don't see an entire function being created to parse every single possible transport protocol....
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Sep 04 21:00:01 2025 UTC