anchetaWern / sitepoint_codes

Code samples from my Sitepoint articles
51 stars 122 forks source link

ratchet chatapp gives bad request #2

Open digininja opened 8 years ago

digininja commented 8 years ago

I've ran the chat app up with

php ./cmd.php

and then browse to it but get a 400 returned

$ curl -I  localhost:8080/index.html 
HTTP/1.1 400 Bad Request
Sec-WebSocket-Version: 13, 6, 0
X-Powered-By: Ratchet/0.3.4

This is the same requesting other files such as localhost:8080/js/main.js

I've had exactly the same problem with other ratchet apps that I've tried so trying to work out if I'm doing something wrong or if Ratchet has changed in a way to break all these tutorial apps.