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 #175644 is a reply to message #175643] Fri, 14 October 2011 16:37 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 12:03 PM, Hans wrote:
> 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.
>>
>
> That's bad!, no way to hack it. Or I have to export my code from php
> to python? Thanks any way!

I don't think you can stop python from doing it, either.

--
==================
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: Fri Nov 29 21:09:18 GMT 2024

Total time taken to generate the page: 0.04956 seconds