how to use _CFHTTPMessageSetResponseURL
how to use _CFHTTPMessageSetResponseURL
- Subject: how to use _CFHTTPMessageSetResponseURL
- From: d2kagw <email@hidden>
- Date: Sat, 17 Feb 2007 12:44:31 +1100
Hi All...
I've been working with this bug for a while now, and finally came
across a previous post which discussed the flaw: http://
lists.apple.com/archives/macnetworkprog/2006/Oct/msg00028.html
You'll have to excuse me though, this is by far the most complex
thing i've ever done in cocoa and am a little stumped on how to
actually call _CFHTTPMessageSetResponseURL without having to call
CFHTTPMessageCopyRequestURL first?
this is the code im playing with:
@try {
CFURLRef url = CFHTTPMessageCopyRequestURL(message);
}
@catch (NSException * e) {
CFURLRef tUrl = @"http://zanoo.isnot.tv/";
_CFHTTPMessageSetResponseURL( message, tUrl );
CFRelease(tUrl);
CFURLRef url = CFHTTPMessageCopyRequestURL(message);
}
@finally {}
when I run the code it still crashes on line #2... I would have
expected it to catch the error and set the response URL....
Sorry for the n00b question..
- Az
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden