CURL Smbs size problem

Hi!

I’m having a strange error when sending to a post web service some data.

the problem is that if my payload exceeds a certain number of record the service returns me the following error

<!DOCTYPE html><html><head><title>Apache Tomcat/8.0.43 - Error report</title><style type="text/css">H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}.line {height: 1px; background-color: #525D76; border: none;}</style> </head><body><h1>HTTP Status 400 - </h1><div class="line"></div><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The request sent by the client was syntactically incorrect.</u></p><hr class="line"><h3>Apache Tomcat/8.0.43</h3></body></html>

these are the number of record I tried to send in the payload and the result, any idea?

1200 records Content-Length: 525142 OK

1220 records Content-Length: 533934 OK

1250 records Content-Length: 547102 KO

1300 records Content-Length: 568499 KO

the total number of record I need to send is approx. 7K

The above is the error response, if you dig down far enough into the HTML error message.

This would suggest there is something wrong with how you’ve formatted your post and/or data (or both), rather than its size.