Chcę ustawić pliki cookie w moim żądaniu HTTP POST.Swift 2.0, Alamofire: Ustaw ciasteczka w żądaniu pocztowym HTTP
Coś w polu cookies w żądaniu HTTP poniżej
version: 0.1.7
Cookie: client=Android; version=0.1.7; sellerId=SEL5483318784; key=178a0506-0639-4659-9495-67e5dffa42de
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Content-Length: 1431
W jaki sposób można to osiągnąć z Alamofire?
Mój obecny wniosek Alamofire jest tak,
Alamofire.request(.POST, ServerConfig.ADD_PRODUCT_URL, parameters: productJSON, encoding: .JSON, headers: nil)
.responseJSON(completionHandler: { responseRequest, responseResponse, responseResult in
print(responseRequest!.URL)
print(responseResponse)
print(responseResult)
})