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 #175643 is a reply to message #175639] Fri, 14 October 2011 16:03 Go to previous messageGo to previous message
Hans[1] is currently offline  Hans[1]
Messages: 3
Registered: October 2011
Karma:
Junior Member
On Oct 14, 2:56 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> 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.
> jstuck...@attglobal.net
> ==================

That's bad!, no way to hack it. Or I have to export my code from php
to python? Thanks any way!
[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: Sun Nov 24 11:03:17 GMT 2024

Total time taken to generate the page: 0.04588 seconds