Click here to Skip to main content
13,735,710 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
Hello guys!
I have PCL aplication, I need send JSON string, but the JSON is very extensive, which gives me the following error: Request URL Too Long/HTTP Error 414. The request URL is too long.
I have my web.config well structured with this configuration:

<httpruntime maxurllength="2097151" maxquerystringlength="2097151">

<bindings>
<webhttpbinding>
<binding maxreceivedmessagesize="2147483647" maxbuffersize="2147483647" transfermode="Streamed">



<security>
<requestfiltering>
<requestlimits maxallowedcontentlength="30000000" maxurl="999999999" maxquerystring="999999999">



<webservices>
<jsonserialization maxjsonlength="50000000">


And my IIS is well configuration.

What I have tried:

Add the above configurations, in addition to configuring the IIS as indicated
Posted 30-Nov-16 11:16am
Comments
j snooze 1-Dec-16 17:35pm
   
not sure how you are calling the url, but can you post the json vs trying to put it in the URL?
See this article:
http://stackoverflow.com/questions/6955302/http-error-414-the-request-url-is-too-long
Arnold Ulate Segura 2-Dec-16 16:05pm
   
Thanks dude!
You do not know how you could send the JSON without adding it to the URL.
Arnold Ulate Segura 2-Dec-16 16:07pm
   
My project is en Xamarin.Forms (PCL).
I use HttpClient with GetStringAsync()
j snooze 2-Dec-16 17:16pm
   
I'm saying if you have too much json you can't send it in the URL as a query string parameter. There are limits to that. By posting the json (similar to posting a webform and all its data to another webform) you can get around this limitation.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180920.1 | Last Updated 30 Nov 2016
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100