title: Create PATCH request
body: <p>I want to make an request via http.
  How to create PATCH request with JSON body without external frameworks?
  This code dosnt work</p>
  
  <pre><code>[request setHTTPMethod:@"PATCH"];
  [request setValue:@"application/json" forHTTPHeaderField:@"Accept"];
  [request setValue:@"application/json" forHTTPHeaderField:@"Content-Type"];
  [request setValue:[NSString stringWithFormat:@"%d", [jsonData length]] forHTTPHeaderField:@"Content-Length"];
  [request setHTTPBody: jsonData];
  </code></pre>