Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect response when sending http request in telnet mode #52

Open
zhengshuxin opened this issue Apr 23, 2021 · 0 comments
Open

Incorrect response when sending http request in telnet mode #52

zhengshuxin opened this issue Apr 23, 2021 · 0 comments

Comments

@zhengshuxin
Copy link

I telnet the server port listened by asmhttpd and after sending the first line of http request, and the error response got:
Trying 0.0.0.0...
Connected to 0.
Escape character is '^]'.
GET / HTTP/1.1
HTTP/1.1 400 Bad Request
Server: asmttpd/0.4.5

But when I send http request by curl, the response is ok.
$ curl "http://127.0.0.1:8081/" -v

  • Trying 127.0.0.1:8081...
  • TCP_NODELAY set
  • Connected to 127.0.0.1 (127.0.0.1) port 8081 (#0)

GET / HTTP/1.1
Host: 127.0.0.1:8081
User-Agent: curl/7.65.3
Accept: /

  • Mark bundle as not supporting multiuse
    < HTTP/1.1 200 OK
    < Server: asmttpd/0.4.5
    < Accept-Ranges: bytes
    < Content-Length: 78
    < Content-Type: text/html
    <
<title>hi</title>

hello world

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant