티스토리 뷰
728x90
#!/bin/bash
status_code=$(curl --write-out %{http_code} --silent --output -X GET /dev/null www.bbc.co.uk/news)
if [[ "$status_code" -ne 200 ]] ; then
exit 1
else
exit 0
fi
How to evaluate http response codes from bash/shell script?
I have the feeling that I'm missing the obvious, but have not succeeded with man [curl|wget] or google ("http" makes such a bad search term). I'm looking for a quick&dirty fix to one of our
stackoverflow.com
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=wideeyed&logNo=221350638501
cURL 소개, HTTP GET, POST 호출 방법
cURL이란? 다양한 프로토콜을 지원하는 데이터 전송용 Command Line Tool이다. (HTTP, HTTP...
blog.naver.com
728x90
'공부' 카테고리의 다른 글
[Python] loop of class member variables (0) | 2021.05.31 |
---|---|
디미터 법칙 (The Law of Demeter) (8) | 2021.05.31 |
[Spring] @RequestParam(value="value", required=true) List<String> values (0) | 2021.05.25 |
[HBase] scan (0) | 2021.05.25 |
[Sh] exit (0) == success; exist (1) == fail; (0) | 2021.05.25 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 레퍼럴 적용 확인
- 테슬라 레퍼럴
- 인스타그램
- 모델y
- 메디파크 내과 전문의 의학박사 김영수
- follower
- 테슬라 레퍼럴 코드 확인
- 팔로워 수 세기
- 유투브
- 개리마커스
- wlw
- 김달
- 어떻게 능력을 보여줄 것인가?
- 모델 Y 레퍼럴
- 테슬라 리퍼럴 코드 혜택
- Kluge
- COUNT
- 테슬라 크레딧 사용
- Bot
- 테슬라 리퍼럴 코드 생성
- 레퍼럴
- 테슬라 추천
- 테슬라 리퍼럴 코드
- 할인
- 클루지
- 테슬라
- 책그림
- 연애학개론
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함