Skip to content

Instantly share code, notes, and snippets.

@pepijn
Created September 18, 2010 14:17
Show Gist options
  • Save pepijn/585712 to your computer and use it in GitHub Desktop.
Save pepijn/585712 to your computer and use it in GitHub Desktop.
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
Accept-Language: nl,en-us;q=0.7,en;q=0.3
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Origin: http://localhost:3010
Access-Control-Request-Method: GET
Access-Control-Request-Headers: cache-control,if-modified-since,x-requested-with
--
Processing ApplicationController#index (for 127.0.0.1 at 2010-09-18 16:15:53) [OPTIONS]
ActionController::MethodNotAllowed (Only get and post requests are allowed.):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment