Hello dAniel,

Friday, April 23, 2004, 6:31:43 AM, you wrote:
dAniel> The global $_SERVER array contains all the headers stuff.

Only for the server it's running on. I'm trying to pull this
information from a remote server which may or may not be running PHP.

dAniel> Perl syntax (preg_match) and ereg(-) ("standard" regex).

>> I know in VBScript, when you do a regexp, all possible matches are
>> stored in an array, so it is pretty easy to get out all the parts you
>> want.

dAniel> preg_match_all(-), preg_split(-).

>>> I didn't check an Apache server (I'll do that tomorrow) to
>>> see how it outputs its HTTP headers.

I ran it against /. to see what I got. Here it is unmolested.


HTTP/1.1 200 OK Date: Fri, 23 Apr 2004 19:19:51 GMT Server: Apache/1.3.29 (Unix) 
mod_gzip/1.3.26.1a mod_perl/1.29 SLASH_LOG_DATA: shtml X-Powered-By: Slash 2.003000 
X-Bender: Life is hilariously cruel. Cache-Control: private Pragma: private 
Connection: close Content-Type: text/html; charset=iso-8859-1 

It's all on one line.


-- 
Leif (TB list moderator and fellow end user).

Using The Bat! 2.10 RC/1 under Windows 2000 5.0
Build 2195 Service Pack 4 on a Pentium 4 2GHz with 512MB


________________________________________________________

http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to