title: How to post a string in the body of a post request with Angular 4.3 HttpClient?
body: <p>We've got a .net WebAPI which looks for a filepath string in the body of a post request and returns the corresponding image. I'm struggling to successfully pass a string to it from Angular 4.3 using the new httpClient. Is it possible? The endpoint's being used by other stuff so I don't really want to create a 'model' of... a string just so I can basically duplicate it but pass it json if possible.</p>
  
  <p>WebAPI method signature: </p>
  
  <pre><code>public HttpResponseMessage ImagesFromPaths(HttpRequestMessage request, [FromBody] string path)
  </code></pre>
  
  <p>Current service method:</p>
  
  <pre><code>getImage(path: string): Observable&lt;any&gt; {
  
    return this.http.post(
      `${apiUrl}`,
      { path },
      { headers: new HttpHeaders({
        'Content-Type': 'application/json',
      }), responseType: 'blob',
    })
  }
  </code></pre>
  
  <p>Got to be an easy thing to achieve?</p>