Re: I get 411 content length required error...

Giganews Newsgroups
Subject: Re: I get 411 content length required error...
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Fri, 13 Jan 2006

"Ron Mertens" <r…@metalgrass.com> wrote in message
news:8B0DF0A74BE9E240r…@metalgrass.com...

> I try to POST some data to a server, and I get the above mentioned error
>  (HTTP/1.1 411 Content length required).

Which version of Indy are you using?  Please show your actual code.  TIdHTTP
should always be including a Content-Length header for POST requests.

> I try to set this field to some value, but I get the error no matter
> what's inside the request.

Please show the raw HTTP traffic.

> What am I doing wrong? How can I compute the real content
> length of my message?

You don't have to.  TIdHTTP does that automatically.

Gambit

Replies

In response to

I get 411 content length required error... posted by Ron Mertens on Fri, 13 Jan 2006