Created
June 16, 2010 22:30
-
-
Save paulitex/441371 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 req = SC.Request.create({ | |
address: 'http://localhost:8080', | |
body: "Hello World" | |
}); | |
req.send(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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