Skip to content

Instantly share code, notes, and snippets.

@jhegedus42
Created August 14, 2017 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhegedus42/a4bfd9e24e893eb36dff88e2fdf364c4 to your computer and use it in GitHub Desktop.
Save jhegedus42/a4bfd9e24e893eb36dff88e2fdf364c4 to your computer and use it in GitHub Desktop.
this call:
val f: Future[XMLHttpRequest] = Ajax.put(url_str, json_line)
generates:
OPTIONS /Line HTTP/1.1
Content-Type: text/plain;charset=UTF-8
Referer: http://localhost/
User-Agent: Node.js (linux; U; rv:v6.11.0) AppleWebKit/537.36 (KHTML, like Gecko)
Accept-Language: en
Accept: */*
Origin: http://localhost
Access-Control-Request-Method: PUT
host: localhost:8043
content-length: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment