FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Can I stop sending content-length header?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Can I stop sending content-length header? [message #175639 is a reply to message #175634] Fri, 14 October 2011 09:56 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 10/14/2011 4:05 AM, Hans wrote:
> I'm using php with IIS. for some test,I hope php does not send back
> "content-length" header.
> I know using chunked transport-encoding can do it, but I don't want to
> use chunked coding either.
>
> In general, I know some http 1.0 server will not send "content-length"
> header and just closing the connection to indicate content finished. I
> want to simulate this behavior. Can I do it some way?
>
> Thanks a lot!

Not in PHP. If you don't send a content-length header, it will be sent
for you. This is not http 1.0, and the rules are different.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to redirect user based on user country?
Next Topic: Site to open blocked sites, and prohibited and encoded
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 10:47:22 GMT 2024

Total time taken to generate the page: 0.05276 seconds