http-headers

How to send and receive headers via PHP

I'd like to study how headers are sent and received. I know about PHP's header function and think I can just look at an actual request header (e.g. using Firebug) and make identical requests to a server (including spoofing the User-Agent). Is this correct? The other problem is how do I get the header responses back? I want to analyze t...

way to clear static files cached in browser from server

Our website has many javascript and image files in each page. When we update our website by modifying the existing javascript, the changes are not taking place since its not cleared from browser cache. Is there any way in WebServer or Appserver setting which will clear visitor's browser cache. We are using IBM Websphere Application Serv...

Can I detect image request by HTTP headers?

Well, I would like to know by HTTP headers if request is triggered by <img tag or by something else. I assume that when request is called from <img tag, I'll not have */* variable in HTTP_ACCEPT or I'm missing something. Regards EDIT: I've tried with few browser but i can't conclude nothing by HTTP_ACCEPT... ...