I want to fetch a URL in PHP with fopen or popen or something.
Getting the main content of the page is fine, but I want to access the headers that the server sends back with the page. I'm sure it can be done with popen (or some command to open a tcp/ip connection to port 80?)
Getting at headers when requesting a URL
Moderators: egami, macek, gesf
-
- Last Samuray
- Posts: 824
- Joined: Sun Jun 02, 2002 3:09 am
it is imposible...
you just can view a result of the fopen function work...
you just can view a result of the fopen function work...
- WiZARD
- Moderator
- Posts: 1240
- Joined: Thu Jun 20, 2002 10:14 pm
- Location: Ukraine, Crimea, Simferopol
- Contact:
mralston wrote:Actually it is possible. Somebody else just gave me the answer. fsockopen does the trick. But thanks anyway. :wink:
You mean get info from server like type of Broowser, IP, etc?
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";

