혹시 netcat을 시도 적이 있습니까?
$ man nc
그런 다음이 같은 서버를 시작할 수 있습니다 : 당신이 할 수있는 경우 확인하려면
$ nc -l 8080 (-l act as a server, listening on port 8080)
(hangs)
I '는 = 10 & B = 20'의 데이터를 POST 요청을 보내는 경우 http://locahost:8080
, netcat 출력 :
$ nc -l 8080
POST/HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:23.0) Gecko/20100101 Firefox/23.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: null
Accept-Encoding: gzip, deflate
DNT: 1
Content-Length: 9
Content-Type: text/plain; charset=UTF-8
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
a=10&b=20
@SnowCrash, 답변을 업데이트했습니다. – falsetru