42-webserv / SpaceX

Non-blocking I/O HTTP WEB Server
2 stars 1 forks source link

[⚙] test script using curl, telnet #77

Closed codeyoma closed 1 year ago

codeyoma commented 1 year ago

내용



태스크

e.g.

curl -X POST -H “Content-Type: plain/text” –data "" localhost:port/location
curl –resolve example.com:80:127.0.0.1 http://example.com/
codeyoma commented 1 year ago

curl -X POST -H “Content-Type: plain/text” –data "num1=17&num2=3" -H "content-length: 14" localhost:8080/post_body -> 무한

curl -resolve :80:127.0.0.1 localhost:8080