POST size ?

  • Thread starter Thread starter WJ
  • Start date Start date
W

WJ

I use POST method to send a payload of three "Name,Value" pairs to an aspx
page. The 2nd pair with a value of a string type and is 700 bytes long.
However, the string is truncated to 360 bytes (approx.) by the time it
reaches the destination page.

I thought POST would cary a higher payload. What is the maximum size of a
"name,value" pair can a POST absorb ?

Thanks

John
 
I don't know the Maximum size of a post you have to take a look at the HTTP
specs for that on www.w3c.org

You should try setting the ContentLength of your HTTP POST to 700
 
I use POST method to send a payload of three "Name,Value" pairs to an aspx
page. The 2nd pair with a value of a string type and is 700 bytes long.
However, the string is truncated to 360 bytes (approx.) by the time it
reaches the destination page.

I thought POST would cary a higher payload. What is the maximum size of a
"name,value" pair can a POST absorb ?

Thanks

John

This can be configured using the urlscan.ini file if you're using
urlscan with IIS (and you should be).

This file says the default length of the query string is 2048. This
probably varies with each IIS version. The above value came from
version 5.1 (Windows 2000 server)

-- ipgrunt
 
WJ said:
I use POST method to send a payload of three "Name,Value" pairs to an
aspx page. The 2nd pair with a value of a string type and is 700
bytes long. However, the string is truncated to 360 bytes (approx.)
by the time it reaches the destination page.

I thought POST would cary a higher payload. What is the maximum size
of a "name,value" pair can a POST absorb ?

There's no limit. Maybe the specified Content-Length header is smaller
than the actual payload's size. Can you post some code?

Cheers,
 
Thank you all for your response. Unfortunately, the "content-length" is not
the culprit. In my string value, whenever there was a double-quotes ("), the
string was truncated at that point. I changed the double quotes to a single
quote and it accepts as large a string as it could.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top