我正在使用RESTKit從rest-api獲取數據。RESTKit response.url參數的改變順序
這是我爲我的請求設置的URL,這是請求發生之前的日誌。
2014-04-03 15:51:10.186 xxx[35745:60b] Just sent URL: /api/dspObjGetNewsList?action=coverage&count=30&start=0&open=0&user=xxx&unique=36027&type=all&country=Sweden,global&division=Strategic Industries,Regional Sales and Service,Automotive
然後我登錄響應URL。
- (void)request:(RKRequest*)request didLoadResponse:(RKResponse*)response {
NSLog(@"xxx: %d, url: %@", [response statusCode], response.URL);
我明白了嗎?
xxx: response code: 200, url: url/api/dspObjGetNewsList?unique=26791&type=all&division=Strategic%20Industries%2CRegional%20Sales%20and%20Service%2CAutomotive&user=xxx&action=coverage&open=0&country=Sweden%2Cglobal&count=30&start=0
爲什麼我在回覆中獲得不同的網址? RESTkit會修改我的網址嗎?