Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. <?php
  2. header("HTTP/1.1 101 Switching Protocols");
  3. header("Upgrade: websocket");
  4. header("Connection: Upgrade");
  5. header(base64_encode(sha1($_POST['Sec-WebSocket-Key']."258EAFA5-E914-47DA-95CA-C5AB0DC85B11")));
  6. header("Sec-WebSocket-Protocol: chat");
  7. header("Access-Control-Allow-Origin: http://dl.dropboxusercontent.com");
  8. header("Access-Control-Allow-Credentials: true");
  9. header("Access-Control-Allow-Headers: content-type");
  10. header("Access-Control-Allow-Headers: authorization");
  11. header("Access-Control-Allow-Headers: x-websocket-extensions");
  12. header("Access-Control-Allow-Headers: x-websocket-version");
  13. header("Access-Control-Allow-Headers: x-websocket-protocol");
  14. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement