Created
September 18, 2010 14:17
-
-
Save pepijn/585712 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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