我正在使用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会修改我的网址吗?