Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

swift alamofire x-www-form-urlencoded

let param:Parameters=[
        "param":param]
   let headers:HTTPHeaders=[
        "Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"]
    
    Alamofire.request(url,method: .post,parameters: param,encoding: URLEncoding.httpBody, headers: headers).responseJSON{response in
....
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #swift #alamofire
ADD COMMENT
Topic
Name
2+9 =