REST API is not responding while more characters given as query parameter
<p>I am working on RESTEasy services to generate API for my application.</p>

<p>I tested with the below code to produce a simple string response,</p>

<pre><code>@GET
@Path("/api")
public Response getUsers(@QueryParam("from") String from,) throws ProtocolException,
        MalformedURLException, IOException {        

    return Response.status(200)
            .entity("*************Hi Welcome*********************")
            .build();
}
</code></pre>

<p>It is working fine with the following url</p>

<pre><code>http://localhost:8080/myApp/f/api?from=any_string_here
</code></pre>

<p>But, this response available only while the query parameter value does not exceed 6246 characters.</p>

<p>If the query parameter value more than 6246 chars, there is no response available. Also, the browser network console shows the status code 400.</p>

<pre><code>http://localhost:8080/myApp/f/api?from=more_than_6246_chars
</code></pre>

<p>I read that longer url needs to be send using POST, so I tried also with @POST method too for this, but  browser network console shows the status code 405 and the following appears in eclipse console.</p>

<pre><code>Apr 07, 2016 12:52:25 PM org.apache.tomcat.util.http.Cookies processCookieHeader
INFO: Cookies: Invalid cookie. Value not a token or quoted value
Note: further occurrences of Cookie errors will be logged at DEBUG level.
</code></pre>

<p>Is this longer URL is restricted by browser or RESTEasy application.</p>

<p>What would be the solution for this? Do I need to send more chars to my rest api parameter.</p>