redrum pam
unread,Nov 11, 2011, 2:14:47 AM11/11/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ASIHTTPRequest
I have use ASIHTTPRequest to upload some video on the iPad to a http
server, It may success, but failed frequently.
I changed to ASIFormDataRequest, and the same happened, some times I
got a error says "Libinfo call to mDNSResponder on main thread",
others time only failed. How can I found why this happened?
the codes looks like
ASIHTTPRequest *request;
request = [ASIHTTPRequest requestWithURL:[NSURL
URLWithString:urlString]];
[request appendPostDataFromFile:uploadRequest.fileFullPath];
[request addRequestHeader:@"Content-Type" value:@"application/
octet-stream"];
[request setShouldStreamPostDataFromDisk:YES];
[request setShouldContinueWhenAppEntersBackground:YES];
if (uploadRequest.progressDelegate) {
[request
setUploadProgressDelegate:uploadRequest.progressDelegate];
}
else {
[request
setUploadProgressDelegate:uploadRequest.progressView];
}
[request setUserInfo:[NSDictionary
dictionaryWithObject:uploadRequest.productGuid
forKey:@"productGuid"]];
[networkQueue addOperation:request];
if ([networkQueue isSuspended]) {
[networkQueue go];
}