title: Akka HTTP how to POST singleRequest with Content-Type application/x-www-form-urlencoded
body: <p>I stuck with sending request with Akka HTTP <code>singleRequest()</code>. I'm trying to deal with Stripe API and it requires <code>application/x-www-form-urlencoded</code> content type for the incoming requests.</p>
  
  <p>I tried to use following structure of HTTP request:</p>
  
  <pre><code>val authorization = Authorization(OAuth2BearerToken("some_token"))
  
  Http().singleRequest(HttpRequest(
          uri = Uri("https://api.stripe.com/v1/customers"),
          method = HttpMethods.POST,
          headers = List(authorization),
          entity = FormData(Map("email" -&gt; HttpEntity("test_1@email.com"))).toEntity(),
          protocol = HttpProtocols.`HTTP/1.1`)
        )
  </code></pre>
  
  <p>But in the Stripe logs I see following in the Parsed Request POST Body section:</p>
  
  <p>(multipart form: 162)</p>
  
  <p>So the question is how to set content type to <code>application/x-www-form-urlencoded</code>?</p>