Skip to content

nosoogja/HttpMessageServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

HttpMessageServer

HttpMessageServer

실행

https://github.com/nosoogja/HttpMessageServer/releases

HttpMessageServer.exe

HttpMessageServer.exe -port 8080 -remote

HttpMessageServer.exe -task abc,efgh,dd

최대 요청 대기 시간 하루.

Linux

  • HttpMessageServer.tar.gz 사용
  • Ubuntu 20.04 확인

API

-사용 Method : GET, POST
-응답 Status Code : 200, 404
-http://localhost/status
-http://localhost/SetMessage?topic=aaa&message=12345678&task=processname
-http://localhost/GetMessage?topic=aaa&timeout=1000
-http://localhost/GetMessage?topic=aaa
-http://localhost/GetLog?task=proc
-http://localhost/ResetTopic?topic=aaa

Client

테스트는 브라우져에 위 URI를 입력 하여 확인 가능.

다음 항목들 API 를 찾아서 대충 코딩하여 사용하면 대충 굴러감...

c# 참고

-HttpClient, FormUrlEncodedContent, KeyValuePair, PostAsync, GetAsync, Content.ReadAsStringAsync()

Golang 참고

-http.PostForm, ioutil.ReadAll, url.Values


결국, 문제는 죽느냐 사느냐 이것 하나 뿐이야.