Skip to content

Instantly share code, notes, and snippets.

@paulitex
Created June 16, 2010 22:30
Show Gist options
  • Save paulitex/441371 to your computer and use it in GitHub Desktop.
Save paulitex/441371 to your computer and use it in GitHub Desktop.
var req = SC.Request.create({
address: 'http://localhost:8080',
body: "Hello World"
});
req.send();
@paulitex
Copy link
Author

echo server output:

OPTIONS / HTTP/1.1
Host: localhost:8080
Access-Control-Request-Method: GET
Origin: http://localhost:4020
Cache-Control: max-age=0
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/534.1+ (KHTML, like Gecko) Version/5.0 Safari/533.16
Referer: http://localhost:4020/uploader
Access-Control-Request-Headers: X-SproutCore-Version, X-Requested-With
Accept: /
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Content-Length: 0
Connection: keep-alive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment