title: HTTP/1.1 505 HTTP Version Not Supported: Processing (client) to Heroku app server
body: <p>I'm trying to ultimately make a POST request from my local Processing application (using the Network library [1]) to a Heroku application I have set up. Right now, I'm just trying to make a simple GET request to make sure the two endpoints can connect.</p>
  
  <pre><code>c = new Client(this, &lt;my-heroku-app-url&gt;, 80);
  c.write("GET / HTTP/1.1\n");
  c.write("Host: example.com\n\n");
  </code></pre>
  
  <p>But I'm getting this response:</p>
  
  <pre><code>HTTP/1.1 505 HTTP Version Not Supported
  Connection: close
  Server: Cowboy
  </code></pre>
  
  <p>It works if I replace the url with any other normal site, like "www.ucla.edu," so I feel like it's specifically because I'm trying to access a Heroku application. I've verified Heroku supports HTTP 1.1 [2] and pretty sure it's serving from port 80, so now I'm not sure what's wrong? </p>
  
  <p>[1] Processing network library: <a href="https://processing.org/tutorials/network/" rel="nofollow noreferrer">https://processing.org/tutorials/network/</a>
  [2] Heroku HTTP Routing: <a href="https://devcenter.heroku.com/articles/http-routing" rel="nofollow noreferrer">https://devcenter.heroku.com/articles/http-routing</a></p>