Page 1 of 1

max length of service request parameter

Posted: Tue May 14, 2013 9:48 am
by steve5588065

I have a service which sends pushnotificationtoken as a request parameter
iOS works fine but Android pushnotificationtoken is extremely long and the service fails

I am using get with Json in the Service

How can I pass the android pushnotificationtoken as a request to the service

regards
Steve


max length of service request parameter

Posted: Tue May 14, 2013 3:15 pm
by maxkatz

How big is the request parameter? Is that the actual parameter name or its value? Does it fail with an error message?


max length of service request parameter

Posted: Tue May 14, 2013 8:51 pm
by steve5588065

Hi Max

its the Google pushnotificationtoken

APA91bF_ELmroyBbdGykpS9W5Inc4bP-X0FDOgNEjQpMNjlKE81Bc47gEmxoFvbUhtvKa1GUq1C0cC037bNjgo_X3wFO2YLHWhDibrLY1xDhHWLm2mnf8X6bXsfBaZxgQRnJ9T2Aigu

Service fails with error 400 Bad Request

If I cut 20 characters off the end of the request parameter the service works fine


max length of service request parameter

Posted: Tue May 14, 2013 10:04 pm
by maxkatz

What service are you invoking? Can you do a POST instead? Does it work if you do a curl command?


max length of service request parameter

Posted: Tue May 14, 2013 11:29 pm
by steve5588065

Max

I have done some testing by varying the Request parameter value lengths in the Appery Service test screen

It appears there is a total request length limit of approx 217 characters

If I remove characters from ANY Request parameter so the total parameter values length is <= 217 then the service succeeds
If I add one character to the end of ANY Request parameter then the service test Fails

This is the same for GET, PUT, POST

This has got me beat

I am using the Appery Proxy on the Service

regards
Steve


max length of service request parameter

Posted: Tue May 14, 2013 11:54 pm
by steve5588065

Max

Fixed it

Added to my web.config on the webserver and now the service works fine

regards
Steve


max length of service request parameter

Posted: Tue May 14, 2013 11:56 pm
by steve5588065

that didn't post properly

added httpRuntime maxurllength = 500 to web.config


max length of service request parameter

Posted: Wed May 15, 2013 12:26 am
by maxkatz

Glad it's working.