When is NSURLErrorDataLengthExceedsMaximum error thrown exactly in iOS

1.1k Views Asked by At

I wanted to know when NSURLErrorDataLengthExceedsMaximum is thrown exactly in iOS.Read apple documentation regarding this error but it is not sufficient for understanding the scenario when this error is thrown.Is this error thrown as a result of any server side issue or iOS issue?.Please help.

1

There are 1 best solutions below

0
Mostafa Sultan On

From apple documentation it says :

NSURLErrorDataLengthExceedsMaximum Returned when the length of the resource data exceeds the maximum allowed.

I recommend using POST request instead of GET and send the data as parameters not in the URL