Desidero impostare i cookie nella mia richiesta HTTP POST.Swift 2.0, Alamofire: imposta i cookie in HTTP Post Request
Qualcosa come il campo cookie nella richiesta HTTP in basso,
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
Come posso raggiungere questo obiettivo con Alamofire?
Il mio attuale richiesta Alamofire è come questo,
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)
})