-(void)getUrl{
NSString *urlS=@"http://211.149.184.79:8080/we/car/getAllCarMessageForPage.do?page=1&size=10";
NSURL *url=[NSURL URLWithString:[urlS stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSURLRequest *request=[[NSURLRequest alloc]initWithURL:url];
NSURLResponse *response=nil;
//post请求在这里
NSString *bodyS=@"";
NSData *postData=[bodyS dataUsingEncoding:NSUTF8StringEncoding];
request.HTTPMethod==@"POST";
request.HTTPBody==postData;
//截止
NSError *error=nil;
NSData *data=[NSURLConnection sendSynchronousRequest:request returningResponse:&response error:nil];
if(error){
}else{
}
NSString *result=[[NSString alloc]initWithData:data encoding:NSUTF8StringEncoding];
NSLog(@"%@",result);
}