title: PUT request is not working in Swift 3
body: <p>I have implemented this code for "PUT" request:</p>
  
  <pre><code>var request: NSMutableURLRequest
  let url:URL = URL(string: NetworkCallSDK.sharedSingleton().urlString! as String)!
  request = NSMutableURLRequest(url: (url as URL) as URL)
  print("getRequestHeaderWithAllParams:\(url)")
  let parameter = ["key":"STRING"] as NSDictionary
  
      let body = NSMutableData()
      let boundary = "Boundary-\(UUID().uuidString)"
  
      //define the multipart request type
  
      request.setValue("multipart/form-data; boundary=\(boundary)", forHTTPHeaderField: "Content-Type")
      for (key, value) in parameter
      {
          body.append("--\(boundary)\r\n".data(using: String.Encoding.utf8)!)
          body.append("Content-Disposition: form-data; name=\"\(key)\"\r\n\r\n".data(using: String.Encoding.utf8)!)
          body.append("\(value)\r\n".data(using: String.Encoding.utf8)!)
      }
      body.append("--\(boundary)--\r\n".data(using: String.Encoding.utf8)!)
  
      request.httpMethod = "PUT"
      request.httpBody = body as Data
      request.timeoutInterval = 120
      return request
  </code></pre>
  
  <p>And I am getting 500 status from server. And same API is working in Android. But same code for POST method is working fine for me. </p>