I installed Alamofire in my project, and now here's what I did.
I installed postman and I placed my url and an xml object inside the body, and I got my result.
Here is an image of what I definitely did with the postman

How can I now use Alamofire or SWXMLHash to send as I am sending it with an email
Thanks in advance!
EDIT
I tried this from another question:
Alamofire.request(.POST, "https://something.com" , parameters: Dictionary(), encoding: .Custom({ (convertible, params) in let mutableRequest = convertible.URLRequest.copy() as! NSMutableURLRequest let data = (self.testString as NSString).dataUsingEncoding(NSUTF8StringEncoding) mutableRequest.HTTPBody = data return (mutableRequest, nil) })) .responseJSON { response in print(response.response) print(response.result) } }
But he sent nothing
This is the log:
Optional ({URL: https://something.com } {status code: 200, headers {Connection = "keep-alive"; "Content-Length" = 349; "Content-Type" = "application / xml"; Date = "Wed, 02 Nov 2016 21:13:32 GMT"; Server = nginx; "Strict-Transport-Security" = "max-age = 31536000; includeSubDomains";}})
RENOUNCEMENT
EDIT
NEVER FORGET PASSWORD parameters, if you do not have a simple add this parameters: Dictionary ()
xml ios swift alamofire swxmlhash
mike vorisis Nov 02 '16 at 17:19 2016-11-02 17:19
source share