Programming/node.js2018. 9. 10. 14:58

node.js 에서 다른 REST 서버로 요청하는걸 찾는중


option의 type을 지정하는거군..


[링크 : http://devnauts.tistory.com/95]

[링크 : http://shiya.io/send-http-requests-to-a-server-with-node-js/]

'Programming > node.js' 카테고리의 다른 글

node.js 글로벌 모듈 목록보기  (0) 2018.09.11
node-rtsp-stream 윈도우에서 설치하기는 실패?  (0) 2018.09.11
cURL 그리고 REST  (6) 2018.09.09
node.js rtsp 스트리밍  (0) 2018.09.07
RESTful  (0) 2018.09.07
Posted by 구차니
Programming/node.js2018. 9. 9. 19:40

"node.js 인 액션" 책 보다가 검색

cURL에서 -X 옵션을 주면 된다


$ curl -X GET http://127.0.0.1:3000/api/users/bakyeono

$ curl -X POST http://127.0.0.1:3000/api/languages/ansi-common-lisp

$ curl -X PUT http://127.0.0.1:3000/api/resources/1789 

[링크 : https://bakyeono.net/post/2016-05-02-rest-api-client-for-cli.html]



-X/--request <command>

(HTTP) Specifies a custom request method to use when communicating with the HTTP server. The specified request will be used instead of the method otherwise used (which defaults to GET). Read the HTTP 1.1 specification for details and explanations. Common additional HTTP requests include PUT and DELETE, but related technologies like WebDAV offers PROPFIND, COPY, MOVE and more.

(FTP) Specifies a custom FTP command to use instead of LIST when doing file lists with FTP.


If this option is used several times, the last one will be used.

[링크 : https://linux.die.net/man/1/curl]



'Programming > node.js' 카테고리의 다른 글

node-rtsp-stream 윈도우에서 설치하기는 실패?  (0) 2018.09.11
node.js HTTP 요청하기  (0) 2018.09.10
node.js rtsp 스트리밍  (0) 2018.09.07
RESTful  (0) 2018.09.07
node.js jwt -JSON Web Token  (0) 2018.09.07
Posted by 구차니

IDS로는 아무래도 방어에 한계가 있다 보니

새로운 패러다임으로 2012년 즈음에 주목받기 시작한 녀석인 듯


다르게 보면.. 서버 자체의 방어력을 올리는데에는 한계에 도달했으니

서버 이동성을 통해서 상대의 명중율을 낮춤으로서

상대적으로 방어력을 향상시킨다는 개념이 되려나?


네트워크 관점으로 보면..

이동 경로를 늘리고 동적으로 변형하면서

네트워크 단에서 서비스를 연결해주면서

정상/비정상 접속을 탐지해 내면서 끊어내주어야 하는거 아닌가 싶기도 하고


[링크 : https://www.krcert.or.kr/data/trendView.do?bulletin_writing_sequence=841]

[링크 : https://blog.cryptomove.com/moving-target-defense-recent-trends-253ce784a680]


Digital Shell game으로 야바위라는 이미지라..

[링크 : https://securityintelligence.com/moving-target-defense-a-digital-shell-game/]

'이론 관련 > 컴퓨터 관련' 카테고리의 다른 글

db 정규화  (0) 2018.09.12
YOLO(영상처리)  (0) 2018.09.11
MNIST 데이터베이스  (0) 2018.06.22
VGA DMT 스펙  (0) 2018.06.11
vga 타이밍  (0) 2018.06.08
Posted by 구차니
Programming/node.js2018. 9. 7. 16:24

찾아보는데.. ffmpeg을 통해서 로컬에서 변환해서 전송해주는 방식

그러면.. 타임스탬프를 받을 수 있으려나?


[링크 : https://github.com/phoboslab/jsmpeg]

[링크 : https://www.npmjs.com/package/rtsp-ffmpeg]

[링크 : https://www.npmjs.com/package/node-rtsp-stream]

'Programming > node.js' 카테고리의 다른 글

node.js HTTP 요청하기  (0) 2018.09.10
cURL 그리고 REST  (6) 2018.09.09
RESTful  (0) 2018.09.07
node.js jwt -JSON Web Token  (0) 2018.09.07
아직 쓸일은 없지만 걍 찾아본 node.js ssl 적용  (0) 2018.09.07
Posted by 구차니
Programming/web 관련2018. 9. 7. 16:16

timestamp 값을 UTC나 로컬시간(한국이라면 KST)로 출력하는 방법을 찾는중

단순하게 date() 객체를 이용하면 될 듯


[링크 : https://stackoverflow.com/.../how-to-convert-a-timestamp-string-to-local-time-using-javascript]

[링크 : https://stackoverflow.com/questions/6525538/convert-utc-date-time-to-local-date-time/18330682]



테스트를 위해서 브라우저의 timezone을 변경해야 하는데

linux라면  export TZ 로 간단하게 할 수 있긴한데 윈도우는 이렇다할 방법을 아직 못 찾고

대신 플러그인을 발견함.


[링크 : https://gist.github.com/dustinsmith1024/dab3560abaa62cbe0754117d44c71026

[링크 : https://chrome.google.com/.../change-timezone-time-shif/nbofeaabhknfdcpoddmfckpokmncimpj]



'Programming > web 관련' 카테고리의 다른 글

REST API HTTP 에러코드  (0) 2018.11.06
sso openid oauth  (0) 2018.09.10
li 글자 수직정렬하기  (0) 2018.08.30
user agent stylesheet  (0) 2018.08.29
div min-width  (4) 2018.08.28
Posted by 구차니
Programming/node.js2018. 9. 7. 15:40

URI나 CRUD 등의 개념이 나오는데

서버에 대해서 하나의 주소 경로로 하여 명사형으로 URI를 구성하고

GET/PUT/POST/DELETE HTTP 메소드를 이용하여

DB의 create/read(select)/update/delete를 구현한다는 것 정도로 일단 이해


[링크 : https://nesoy.github.io/articles/2017-02/REST]

[링크 : https://spoqa.github.io/2013/06/11/more-restful-interface.html]

[링크 : http://blog.remotty.com/blog/2014/01/28/lets-study-rest/]

[링크 : https://beyondj2ee.wordpress.com/2013/03/21/당신의-api가-restful-하지-않은-5가지-증거/]

'Programming > node.js' 카테고리의 다른 글

cURL 그리고 REST  (6) 2018.09.09
node.js rtsp 스트리밍  (0) 2018.09.07
node.js jwt -JSON Web Token  (0) 2018.09.07
아직 쓸일은 없지만 걍 찾아본 node.js ssl 적용  (0) 2018.09.07
node.js exec와 JSON.parse()  (0) 2018.09.07
Posted by 구차니
Programming/node.js2018. 9. 7. 15:19
embeded/odroid2018. 9. 7. 14:01

아내님 윤허를 받았으니

(얼마에 어떤거 지른다고 말하진 않음 ㅋㅋㅋ)

Power 지름!


XU4 살리기 프로젝트인데 소심해서.. eMMC는 다음기회에..

XU4 케이스는.. 나사가 없다는 이유로 한번 더 사고(일단 검은색이라 마음에 안드는 것도 있음)

U3 랑 공용으로 쓰기 위해 UART 모듈 사고(흑.. 개 비싸 ㅠㅠ)

C2 케이스는.. 라즈베리 3B용으로 맞길 빌어 보는 중(어짜피 5천원인데 머..)


배송은 다음주 화요일쯤 이라고 하니 느긋하게 기다려 봐야지 머 ㅠㅠ

아.. 집으로 보내지 말걸 그랬나?


'embeded > odroid' 카테고리의 다른 글

odroid 케이스 + 파워 도착!  (2) 2018.09.12
odroid U3 stretch  (0) 2018.09.11
odroid eMMC / SD 리더 호환성  (0) 2018.05.14
odroid u3 저전력은 안되나..  (0) 2018.04.22
odroid u3 mediawiki 설치해보니..  (0) 2018.04.19
Posted by 구차니
Programming/node.js2018. 9. 7. 13:44

부디(?) 이걸 쓸일이 아직 안생기길..


[링크 : https://www.securesign.kr/guides/Node-js-SSL-Certificates-Install]

'Programming > node.js' 카테고리의 다른 글

RESTful  (0) 2018.09.07
node.js jwt -JSON Web Token  (0) 2018.09.07
node.js exec와 JSON.parse()  (0) 2018.09.07
node.js express template  (0) 2018.09.06
node.js exec()  (0) 2018.09.06
Posted by 구차니
파일방2018. 9. 7. 11:51

REST API 문서화 시켜주고 테스트 하는 용도로 쓰이는 툴(?)


[링크 : https://swagger.io/tools/swagger-ui/]

'파일방' 카테고리의 다른 글

vworld  (0) 2019.01.13
cairo  (0) 2018.12.20
차트 관련 자바스크립트  (3) 2018.09.04
웹에서 회면 캡쳐하기  (2) 2018.09.03
무료 오프라인 지도  (4) 2018.08.31
Posted by 구차니