HTTP Request returns 413 FULL. Where is configuration file?

Wednesday, 28 December 2011 · 3 messages · last reply 31 Dec 2011
FB
France Baril28 Dec 2011 01:41 #
Hi, After about 2620 characters on a response for an HTTP:Request, I get a 413 FULL error. I looked at the .basex configuration file and at the httpserver startup options, but couldn't find a way to change configuration for response size. Should I be looking for the Jetty config? I searched for jetty.xml, but only found it under olderapp/jetty.xml. Nothing that resemble 'baseX/jetty.xml'. Do you know how I can resolve this issue? I'm on Mac OsX - Snow Leopard. Thanks, France
LL
Lukas Lewandowski28 Dec 2011 12:22 #
Hi France, I have several questions: What HTTP client do you use? Which HTTP method do you use? How does the request look like? How big is your data you want to store/request? regards Lukas
Quoted text · France Baril · 21 lines
On Dec 28, 2011, at 12:41 AM, France Baril wrote: > Hi, > > After about 2620 characters on a response for an HTTP:Request, I get a 413 FULL error. > > I looked at the .basex configuration file and at the httpserver startup options, but couldn't find a way to change configuration for response size. > > Should I be looking for the Jetty config? I searched for jetty.xml, but only found it under olderapp/jetty.xml. Nothing that resemble 'baseX/jetty.xml'. > > Do you know how I can resolve this issue? > > I'm on Mac OsX - Snow Leopard. > > Thanks, > > France > > _______________________________________________ > BaseX-Talk mailing list > BaseX-Talk at mailman.uni-konstanz.de > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
LL
Lukas Lewandowski31 Dec 2011 11:25 #
Good news. Lukas
Quoted text · France Baril · 117 lines
On Dec 31, 2011, at 2:08 AM, France Baril wrote: > I had not try, and though I still haven't, I think that has just answered my question… since it lead me to read this: "Maximum URL length is 2083 characters". Src: http://www.cs.tut.fi/~jkorpela/forms/methods.html#exc. > > > > On Wed, Dec 28, 2011 at 2:32 PM, Lukas Lewandowski <lukas.lewandowski at uni-konstanz.de> wrote: > Did you try to send your query via POST? > > > On Dec 28, 2011, at 5:24 PM, France Baril wrote: > >> I use Ruby >> The request is: >> searchquery = searchquery + s_paramlist >> uri = URI.parse("http://localhost:8984/rest/KnowledgeBase/Content?query=" + searchquery ) >> http = Net::HTTP.new(uri.host, uri.port) >> request = Net::HTTP::Get.new(uri.request_uri) >> request.basic_auth("user1", "user1") >> response = http.request(request) >> # decode allows query to return %26 and ruby to understand '&' as not '&amp;' >> result=URI.decode(response.body) >> if (response.code != "200") >> @search = "ERROR: " + response.code + ' ' + response.message >> else >> @search = result.html_safe >> $currentsearch = @search >> end >> The query works when the list of topics under 'limit to' is short, not when it's long: >> xquery version "1.0"; >> declare variable $kwoperator as xs:string := "all"; >> (:For each topic type, create box:) >> <div style="font-size: 10pt;"> >> <form action="start" method="get"> >> <div> >> <input type="text" name="keywords" value="Search for..." size="42"/> >> {if ($kwoperator ='any') then >> <span><br/> >> %26%23160%3B%0D%0A<input type="radio" name="kwoperator" value="all" /> Contains <b>all</b> these words <br/> >> %26%23160%3B%0D%0A<input type="radio" name="kwoperator" value="any" checked="yes"/> Contains <b>any</b> of these words <br/> >> </span> >> else >> <span><br/> >> %26%23160%3B%0D%0A<input type="radio" name="kwoperator" value="all" checked="yes" /> Contains <b>all</b> these words <br/> >> %26%23160%3B%0D%0A<input type="radio" name="kwoperator" value="any" /> Contains <b>any</b> of these words <br/> >> </span> >> } >> <input class="submit" type="submit" value="Search" /> >> <br/> >> </div> >> <div> >> <p><i>Limit topics to:</i></p> >> { for $x in distinct-values(//*[contains(@class, ' topic/topic ')]/name()) >> order by $x >> return <span>{"%26%23160%3B%0D%0A"}<input type="radio" name="topic" value="{$x}" />{concat(' ', $x)}<br/></span> >> } >> <input class="submit" type="submit" value="Refine" /> >> <br/> >> </div> >> </form> >> </div> >> >> Thanks, >> >> France >> >> On Wed, Dec 28, 2011 at 6:22 AM, Lukas Lewandowski <lukas.lewandowski at uni-konstanz.de> wrote: >> Hi France, >> >> I have several questions: >> >> What HTTP client do you use? >> Which HTTP method do you use? How does the request look like? >> How big is your data you want to store/request? >> >> regards >> Lukas >> >> On Dec 28, 2011, at 12:41 AM, France Baril wrote: >> >> > Hi, >> > >> > After about 2620 characters on a response for an HTTP:Request, I get a 413 FULL error. >> > >> > I looked at the .basex configuration file and at the httpserver startup options, but couldn't find a way to change configuration for response size. >> > >> > Should I be looking for the Jetty config? I searched for jetty.xml, but only found it under olderapp/jetty.xml. Nothing that resemble 'baseX/jetty.xml'. >> > >> > Do you know how I can resolve this issue? >> > >> > I'm on Mac OsX - Snow Leopard. >> > >> > Thanks, >> > >> > France >> > >> > _______________________________________________ >> > BaseX-Talk mailing list >> > BaseX-Talk at mailman.uni-konstanz.de >> > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> >> >> >> >> -- >> France Baril >> Architecte documentaire / Documentation architect >> france.baril at architextus.com >> (514) 572-0341 > > > > > -- > France Baril > Architecte documentaire / Documentation architect > france.baril at architextus.com > (514) 572-0341

⚡Generated with XQuery