wrong headers from server
| From: | Paul Chvostek | Date: | Mon, 01 Sep 2003 08:21:45 +0000 |
| Subject: | wrong headers from server | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-161352@lists.php.net to get a copy of this message | ||
This may be a curl question, but it may not....
I have a script through which I'm trying to push all images. The push
happens using mod_rewrite:
RewriteRule ^/(.+\.(gif|jpg|jpeg|png))(\?.*)?\$ /inc/script.php?f=$1 [NC,L,PT]
Oddly, when hitting the script from a command line, I get different
results depending on how it's called:
> curl -D- http://hostname/test.jpg | grep Content-
Content-Type: text/html
> curl -I http://hostname/test.jpg | grep Content-
Content-Type: image/jpeg
What's going on here?
--
Paul Chvostek <paul@it.ca>
Operations / Abuse / Whatever
it.canada, hosting and development http://www.it.ca/