Ask a Question related to Coldfusion Server Administration, Design and Development.
-
Noodles #1
http HEAD returning content body
Using win2k and win2003 (IIS5 and IIS6) and CFMX6.1. I've just noticed when you
send a request to the server like this:
HEAD /file.cfm HTTP/1.1
Host: [url]www.mysitename.com[/url]
It returns the header and the content body. Whereas if I just do something
like:
HEAD /imagefile.gif HTTP/1.1
Host: [url]www.mysitename.com[/url]
It returns just the header (as is expected).
So it seems to be something wrong with coldfusion, rather than IIS. Is this a
bug/feature of cold fusion or is there something I can do in the config?
Noodles Guest
-
#30329 [Opn->Fbk]: Error Fetching http body, No Content-Length, connection closed or chunked data
ID: 30329 Updated by: dmitry@php.net Reported By: thetaphi@php.net -Status: Open +Status: Feedback... -
#30329 [Csd->Opn]: Error Fetching http body, No Content-Length, connection closed or chunked data
ID: 30329 Updated by: lsmith@php.net Reported By: thetaphi@php.net -Status: Closed +Status: Open... -
head and body together?
I am trying to put together a project, and was wondering if someone might be able to help me answer a question. Is it possible to marry a boned... -
HTTP POST fails on 4 megabyte body
My ASP.NET 1.1 web service written in Visual C+ 1.1 (2003) fails with an error 400 if the body of the HTTP post exceeds about 4 megabytes. (I don't... -
Editable Region between </head> and <body>
I am trying to insert an editable region between the </head> and <body> tags with no luck. My ecommerce app requires me to place some tokens there... -
BKBK #2
Re: http HEAD returning content body
How do you make the request? When I use the cfhttp tag it works for cfm files
as expected:
<cfhttp url="http://127.0.0.1:8500/index.cfm" method="head" throwOnError="Yes">
<cfdump var="#CFHTTP#">
<cfhttp url="http://127.0.0.1:8500/xmas_tree.gif" method="head"
throwOnError="Yes">
<cfdump var="#CFHTTP#">
BKBK Guest
-
Noodles #3
Re: http HEAD returning content body
I'm making the request using a telnet like program.
When I make the request using cfhttp it seems to work fine, but that doesn't help me
Noodles Guest
-
MikerRoo #4
Re: http HEAD returning content body
Try setting the headers like a polite client:
Accept-Encoding, Connection, Host, TE, User-Agent.
MikerRoo Guest
-
Noodles #5
Re: http HEAD returning content body
I've tried setting all those headers (with exception to TE as I don't know what
that is) and others, but the result is the same.
It looks to me to be a bug in CFMX6.1 as it's not just my server affected.
I've tried a CFMX7 server (namely the macromedia.com server) and it doesn't
have this problem.
Noodles Guest
-
Telemedianer #6
Re: http HEAD returning content body
are you sure this is not the webserver doing this ? for example it's normal for
apache to treat head requests like get requests. it's up to the client to use
the body part or throw it away, the response header in HEAD and GET should be
(by RFC) exactly the same.
have you tried to do the same on a plain ascii or html file (you are comparing
a cf request -> ascii to a image request -> binary).
Cheers,
-S
Telemedianer Guest
-
Noodles #7
Re: http HEAD returning content body
I think you need to brush up on your RFC's, according to RFC2616, section 9:
The HEAD method is identical to GET except that the server MUST NOT return a
message-body in the response.
So it looks like CFMX6.1 is breaking RFC's by returning the message body.
I have tried the same process with a .txt file and it works fine, just seems
to be pages parsed by cold fusion.
Noodles Guest
-
Noodles #8
Re: http HEAD returning content body
Not only does it break RFC's, by returning the whole page it's using up
bandwidth that need not be used.
Google may even be punishing sites that do this, as google and other search
engines use HEAD to check if the page exists and if it has been changed since
they were last spidered.
Noodles Guest
-
MikerRoo #9
Re: http HEAD returning content body
Maybe you're right.
My CF7 servers respond correctly to the telnet clients I've tried.
MikerRoo Guest



Reply With Quote

