ruturajv wrote:I tried the apache_request_headers but that didn't return
HTTP/1.1 200 OK
and that is what i actually want...
HTTP/1.1 200 OK isn't a request header, it's a response header. So it makes sense that apache_request_headers() wouldn't return it, huh? Just use sockets to connect to the server, request the file, and then read what's returned. The first few lines are the headers. Read up on the HTTP protocol for more details, but this is pretty simple. Hell, you can do it from telnet (or a decent browser like Firebird) if you want to skip PHP altogether.