title: API REST : 414 Request-URI too long using GET
body: <p>While there have been many topics related to this issue, I still couldn't find a solution to this problem.</p>
  
  <p>I have a GET API REST call that can be very specific, example :</p>
  
  <blockquote>
    <p>/v1/books?id=40,41,42,43,44,45,46,47...</p>
  </blockquote>
  
  <p>However, I get a 414 Request-URI too long error sometimes because the list of ids is long.</p>
  
  <p>I've read on every topic related to this problem that we have to use POST instead of GET when there are many parameters (instead of trying to change the max limit in apache, which I agree is not a good solution)</p>
  
  <p>But I'm trying to fetch books, not create ones! REST API is very specific that POST is for creating new entries.
  And since I'm using Slim Framework, if I call a POST to fetch books, it'll be expecting different parameters to create a new book. Slim can't specify two different POST /v1/books as it'll always use the first one it finds, no matter the parameters you send... (I'll either be fetching or creating books, never both at the same time)</p>
  
  <p>So, is there a solution somewhere to my problem ?
  I'm a bit surprised there's not a REST solution yet...
  Looked so hard, couldn't find anything...</p>
  
  <p>Thanks in advance!</p>
  
  <p>PS : I'm consuming this GET API using cURL/PHP, no JS/AJAX in there.</p>