Jump to content

How to control request Content-Length header


irigsoft

Recommended Posts

Hello,

I try to make some limitations on Content-length of body on my StandAlone application.

I read : https://stackoverflow.com/questions/2773396/whats-the-content-length-field-in-http-header#:~:text=The Content-Length header is,the start-line and headers.

and this https://www.jmarshall.com/easy/http/

and try to set on TUniServerModule.RespInfoCustomHeaders

Content-Length: 20000, but I am getting this when try to load my app on Google

 sent an invalid response.

ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH
 
When I try to configure TUniServerModule.UniGUIServerModuleHTTPCommand
AResponseInfo.ContentLength: = 20000, then my application shows the basic form, but freezes without error
 
So , what I am wrong ?
Link to comment
Share on other sites

On 5/21/2022 at 1:01 AM, irigsoft said:

Hello,

I try to make some limitations on Content-length of body on my StandAlone application.

I read : https://stackoverflow.com/questions/2773396/whats-the-content-length-field-in-http-header#:~:text=The Content-Length header is,the start-line and headers.

and this https://www.jmarshall.com/easy/http/

and try to set on TUniServerModule.RespInfoCustomHeaders

Content-Length: 20000, but I am getting this when try to load my app on Google

 sent an invalid response.

ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH
 
When I try to configure TUniServerModule.UniGUIServerModuleHTTPCommand
AResponseInfo.ContentLength: = 20000, then my application shows the basic form, but freezes without error
 
So , what I am wrong ?

Hello

What is the purpose of using different content-length?

What are you trying to achieve?

Link to comment
Share on other sites

On 5/22/2022 at 3:58 PM, Hayri ASLAN said:

Hello

What is the purpose of using different content-length?

What are you trying to achieve?

hello, i want to add more security to my projects (my security team recommends it). For security reasons, I want to control the body of the message when client send request to server.

I try to add some limitations of request message body.

 

https://backstage.forgerock.com/docs/am/7.1/security-guide/limit-request-body-size.html

Link to comment
Share on other sites

  • irigsoft changed the title to How to control request Content-Length header

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...