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 #175646 is a reply to message #175644] Sat, 15 October 2011 08:11 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, 9:37 am, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> 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.
> jstuck...@attglobal.net
> ==================

Using python seems can do everything. I already tried a simple python
code(using python itself without any other web server support) to do
it. but export all my php code to python will be a hard work.
[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:34:31 GMT 2024

Total time taken to generate the page: 0.06028 seconds