title: Best way to parse HTTP headers from HTTP request String using no 3rd party libs (Core Java)
body: <p>Given an HTTP request header, does anyone have suggestions or know of existing code to properly parse the header? I am trying to do this with Core Java only, no third party libs</p>
  
  <p>Edit:</p>
  
  <p>Trying to find key fields from this String for example:</p>
  
  <p>GET / HTTP/1.1User-Agent: curl/7.19.7 (x86_64-pc-linux-gnu) libcurl/7.19.7 OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15Host: localhost:9000Accept: <em>/</em></p>
  
  <p>Want to parse out the Method and method</p>