Skip to content

Instantly share code, notes, and snippets.

@danbev
Created March 31, 2014 07:30
Show Gist options
  • Save danbev/9887071 to your computer and use it in GitHub Desktop.
Save danbev/9887071 to your computer and use it in GitHub Desktop.
SockJS curl commands

Open or poll a xhr polling session:

curl -v http://localhost:8081/echo/123/123/xhr

Send to a xhr polling session:

curl -i --header "Content-Type: application/javascript" -X POST -d '["data"]' http://localhost:8081/echo/123/123/xhr_send
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment