1. NSString *fileName = [[NSBundle mainBundle] pathForResource:@"test"ofType:@"jpg"];  
  2. NSString *url = @"http://....../upload.aspx";  
  3. ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL: [NSURL URLWithString: url]];  
  4. [request setPostValue: @"MyName" forKey: @"name"];  
  5. [request setFile: fileName forKey: @"this_is_file"];  
  6. [request buildRequestHeaders];  
  7. NSLog(@"header: %@", request.requestHeaders);  
  8. [request startSynchronous];  
  9. NSLog(@"responseString = %@", request.responseString);