• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
how to use _CFHTTPMessageSetResponseURL
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: how to use _CFHTTPMessageSetResponseURL
      • From: Frederick Cheung <email@hidden>
  • Prev by Date: Re: Writing a virtual network interface
  • Next by Date: Re: how to use _CFHTTPMessageSetResponseURL
  • Previous by thread: Re: Writing a virtual network interface
  • Next by thread: Re: how to use _CFHTTPMessageSetResponseURL
  • Index(es):
    • Date
    • Thread