I'm sending a request to server using Alamofire
pod.
var urlComponents = URLComponents(string: "/hotel/v2")!
urlComponents.queryItems = [
URLQueryItem(name: "page", value: page)
]
let urlString = urlComponents.url?.absoluteString
var urlRequest = URLRequest(url: url.appendingPathComponent(urlString))
The problem begins when I print out the urlRequest
. It shows as :
Then the request reach the backend and the backend returns me some error.