473,320 Members | 2,111 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

header catcher

is there a browser which can log what headers send or receive?

I have many images in my page which returned with eg: index.php?image1.png

I saw, when I use directly link:
<img src=image1.jpg>
browser never reloads image (caching) but when I use php link
<img src="index.php?image1.jpg">
browser always reload the image

why?
Jul 17 '05 #1
5 2559
Hello,

- Chameleon - wrote:
is there a browser which can log what headers send or receive?
I don't know about this one.
I saw, when I use directly link:
<img src=image1.jpg>
browser never reloads image (caching) but when I use php link
<img src="index.php?image1.jpg">
browser always reload the image


Maybe the browser uses a conditional GET, so maybe
the request from browser to server contains an additional
HTTP header that tells the server to only return the content
of a file if it was modified after this and that datetime.

In case of non-static content, like a PHP script,
I can imagine that such headers are ignored
and the script is always executed, because it doesn't make
much sense for the server to check the modification datetime
of the PHP script. So perhaps you have to check this special
header yourself from the PHP script and, if the image file
didn't change, you return a different status to the browser.

Sorry for not giving you exact data, I don't know the names
of the headers and the status codes out of the top of my head,
but you can find them in the HTTP specification.

Best regards,

Eric
Jul 17 '05 #2
On Fri, 24 Oct 2003 18:38:35 +0300, "<- Chameleon ->"
<ch******@hotmail.NOSPAM.com> scrawled:
is there a browser which can log what headers send or receive?

I have many images in my page which returned with eg: index.php?image1.png

I saw, when I use directly link:
<img src=image1.jpg>
browser never reloads image (caching) but when I use php link
<img src="index.php?image1.jpg">
browser always reload the image

why?


Look up Last-modified and E-tag headers - a combination of these can achive
what you want... Plus use path info to get rid of the "?" i.e.

/index.php/image1.png rather than ?image1.png and use
$_REQUEST['PATH_INFO'] to pass the info...

Jul 17 '05 #3
"<- Chameleon ->" <ch******@hotmail.NOSPAM.com> wrote in message news:<bn**********@nic.grnet.gr>...
is there a browser which can log what headers send or receive?
I heard that Firebird do so.
I have many images in my page which returned with eg: index.php?image1.png

I saw, when I use directly link:
<img src=image1.jpg>
browser never reloads image (caching) but when I use php link
<img src="index.php?image1.jpg">
browser always reload the image

why?


I think, it is because in your PHP file you have used passed
"no-cache" or last modified headers.

---
"He who created the god was a fool; he who spreads his name is a
scoundrel and he who worships him is a barbarian."---Periyar, Famous
Tamil Rationalist
Email: rrjanbiah-at-Y!com
Jul 17 '05 #4
"<- Chameleon ->" <ch******@hotmail.NOSPAM.com> wrote in message news:<bn**********@nic.grnet.gr>...
is there a browser which can log what headers send or receive?


http://www.httpwatch.com/ - IE addon

http://www.rexswain.com/httpview.html - HTTP Viewer

---
"He who created the god was a fool; he who spreads his name is a
scoundrel and he who worships him is a barbarian."---Periyar, Famous
Tamil Rationalist
Email: rrjanbiah-at-Y!com
Jul 17 '05 #5
ng**********@rediffmail.com (R. Rajesh Jeba Anbiah) wrote in message news:<ab**************************@posting.google. com>...
"<- Chameleon ->" <ch******@hotmail.NOSPAM.com> wrote in message news:<bn**********@nic.grnet.gr>...
is there a browser which can log what headers send or receive?


http://www.httpwatch.com/ - IE addon

http://www.rexswain.com/httpview.html - HTTP Viewer


Just tried HTTPLook (http://www.httpsniffer.com/ ). And
definitely it is the winner. Sniffs great with IE, Yahoo Messenger,
etc. And it is very good.

---
"Success = 10% sweat + 90% tears"
Email: rrjanbiah-at-Y!com
Jul 17 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: John | last post by:
Hi. I am having a few header problems at the moment with a login page. I don't have my headers at the top of the page where I've learned I need to have them. However, I also know I'm supposed...
11
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do...
60
by: Derrick Coetzee | last post by:
It seems like, in every C source file I've ever seen, there has been a very definite include order, as follows: - include system headers - include application headers - include the header...
18
by: John Smith | last post by:
Hi all What does the group think of the practise of including one header file from inside another? I have some legacy code where this has been done, and it creates a dependency on a module...
6
by: Jason Collins | last post by:
There seems to be an inconsistency (bug?) in the way the Set-Cookie header is handled by the WebHeaderCollection. That is, the values of Set-Cookie, when an Expires is specified, contain the ","...
0
by: Dean Hallman | last post by:
Hello, I am developing a BHO that should add a custom HTTP header on a specific domain only. Don't want the header globally, otherwise I could just add a registry key. So, on...
4
by: Joseph Geretz | last post by:
We use a Soap Header to pass a token class (m_Token) back and forth with authenticated session information. Given the following implementation for our Logout method, I vastly prefer to simply code...
1
by: Shalako | last post by:
I check my error log and see these entries: malformed header from script. Bad header= Missing gauge reports are ind: padata.pl /perl/pema/padata.pl did not send an HTTP header malformed...
5
by: =?Utf-8?B?V2ViQnVpbGRlcjQ1MQ==?= | last post by:
I have a sub in vb.net that adds extra headers to a gridview and it works very well. however, i tried to translate it to c# and i'm getting the header inserting itself over the first datarows and...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.