<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 12, 2018 at 11:37 AM, Tobias Pape <span dir="ltr"><<a href="mailto:Das.Linux@gmx.de" target="_blank">Das.Linux@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
> On 12.01.2018, at 18:30, Eliot Miranda <<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>> wrote:<br>
><br>
> Hi Chris,<br>
><br>
>     I just looked for revisions of a large initialization method in VMMaker.oscog and got the reply<br>
><br>
> 'HTTP/1.1 414 Request-URI Too Large<br>
> server: nginx/1.12.2<br>
> date: Fri, 12 Jan 2018 17:26:03 GMT<br>
> content-type: text/html<br>
> content-length: 193<br>
> connection: close<br>
><br>
> <html><br>
> <head><title>414 Request-URI Too Large</title></head><br>
> <body bgcolor="white"><br>
> <center><h1>414 Request-URI Too Large</h1></center><br>
> <hr><center>nginx/1.12.2</<wbr>center><br>
> </body><br>
> </html><br>
> '<br>
><br>
> I wonder could the API be changed so that the request doesn't include the body of the method, but only its selector, class and timestamp?  The issue would appear to be here:<br>
><br>
> httpGet: actionString for: aMCDefinition<br>
>       ^ HTTPSocket<br>
>               httpGet: self locationWithTrailingSlash<br>
>               args:<br>
>                       { 'action'->{actionString}.<br>
>                       'mc-definition'-> {self serializeForRequest: aMCDefinition}}<br>
>               user: self user<br>
>               passwd: self password<br>
><br>
> Copying the aMCDefinition instance and setting its source to something small (nil?, the empty string?, the selector?) would solve the size problem.  What info does the server require?<br>
<br>
<br>
</div></div>The problem here is _not_ the body of the method, but rather the requested URL.<br>
<br>
Can you give us the value of 'self locationWithTrailingSlash' for that method?<br>
<br>
-=-=-<br>
Never mind, the problem is that this is a GET request that serializes the WHOLE definition into the URL.<br>
<br>
It would be better to make that a POST and encode 'action' and 'mc-defintion' in the POST's body<br></blockquote><div><br></div><div>+1</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888">        -Tobias<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><span style="font-size:small;border-collapse:separate"><div>_,,,^..^,,,_<br></div><div>best, Eliot</div></span></div></div></div>
</div></div>