title: format string for a GET request from browser in C socket Server -- need to parse GET request
body: <p>I am making a small C TCP socket program for simple HTTP server and doing it in C. So in that I like to parse one request which is below, But Since I will loop though the request string came from browser so I need the exact HTTP request format with query string. Below is all I know plus I also know that in below request my server also gets <code>\t</code> for tab, <code>\r</code> for carret return and <code>\n</code> for next line But I dont know the order of <code>\t</code>, <code>r</code> and <code>\n</code> so anyone can please tell: what is the corrent http format string for below GET request. Thanks</p>
  <pre><code>GET /add?title=gedit&amp;price=87 HTTP/1.1
  Host: localhost
  User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0
  Accept: text/html,application/xhtml+xml,application/x
  </code></pre>