title: whitespace in url - alamofire
body: <p>I'm trying to post a http request using alamofire. my request is as follows:</p>
  
  <pre><code>let url = "\(myBaseURL)/{name:adriana lima}"
  Alamofire.request(url.addingPercentEncoding(withAllowedCharacters: .urlFragmentAllowed)!, method: .post)
  </code></pre>
  
  <p>I tried some encoding types such as : </p>
  
  <blockquote>
    <p>urlFragmentAllowed , whitespaces </p>
  </blockquote>
  
  <p>but they're not working.</p>
  
  <p>I know if i use parameters, whitespace would be handled but in this case, i have to pass parameters inside of url. but it results error. how can i post this and how should i encode it ?</p>