Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #3415

Re: Can I stop sending content-length header?

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: Can I stop sending content-length header?
Date 2011-10-14 05:56 -0400
Organization A noiseless patient Spider
Message-ID <j79109$5mk$2@dont-email.me> (permalink)
References <5728ad0f-1fb7-4990-a0b7-21807736d99d@hv4g2000vbb.googlegroups.com>

Show all headers | View raw


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@attglobal.net
==================

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can I stop sending content-length header? Hans <hansyin@gmail.com> - 2011-10-14 01:05 -0700
  Re: Can I stop sending content-length header? Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-14 05:56 -0400
    Re: Can I stop sending content-length header? Hans <hansyin@gmail.com> - 2011-10-14 09:03 -0700
      Re: Can I stop sending content-length header? Jerry Stuckle <jstucklex@attglobal.net> - 2011-10-14 12:37 -0400
        Re: Can I stop sending content-length header? Hans <hansyin@gmail.com> - 2011-10-15 01:11 -0700
  Re: Can I stop sending content-length header? Luuk <Luuk@invalid.lan> - 2011-10-15 10:58 +0200
  Re: Can I stop sending content-length header? Eli the Bearded <*@eli.users.panix.com> - 2011-10-16 03:55 +0000

csiph-web