Skip to content

Instantly share code, notes, and snippets.

var url = [CPURL URLWithString:@"http://localhost:3000/bewoners.json"];
var request = [CPURLRequest requestWithURL:url];
var connection = [CPURLConnection connectionWithRequest:request delegate:self];
--
OPTIONS /bewoners.json HTTP/1.1
Host: localhost:3000
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; nl; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8