title: How to pass a string as a HTTP payload in angular 2?
body: <p>The issue I am having is that I am passing a string object to a http request however when i check the network tab in chrome my payload is not a string, and the API fails.</p>
  
  <p>I have tried passing literally a "username" as the payload and when i check the network tab in chrome the payload is still not a string.</p>
  
  <pre><code>post(url: string, requestBody: any) {
  
          if (requestBody == null || requestBody === undefined) {
              requestBody = "dummytext";
          }
           return this.http.post(url, requestBody, {
              observe: 'response',
              responseType: 'json' 
          }).pipe(catchError((err: HttpErrorResponse) =&gt; {
              this.handleHttpErrors(err);
              return Observable.throw(err);
          }));
      }
  </code></pre>
  
  <p>In the request pay load i see: testUser 
  What I should be seeing is: "testUser"
  I thank you guys in advance!</p>