#import <Foundation/Foundation.h>
int main(void)
{
@autoreleasepool
{
NSURLRequest *request = [NSURLRequest requestWithURL:URL];
NSHTTPURLResponse *response = nil;
NSError *err = nil;
NSData *data = "" sendSynchronousRequest:request returningResponse:&response error:&err];
NSLog(@"%@, %@, %@", response, err, data);
}
return 0;
}
The data should never be empty.
On 11 Apr 2013, at 10:17, Maxthon Chan wrote:
Well I checked again, the current NSURLCnnection does not seem to work on my Ubuntu VM at all. I built it from scratch. What did I miss?
I don't know ... you would need to provide a sample test program to look at / try out.
It would be great if you could provide testcases for the regression test suite.
There's a little one in NSURL/test00.m