curl 명령어 썸네일형 리스트형 Windows Server에서 브라우저 없이 파일 다운로드하는 방법 Windows Server에서 브라우저 없이 파일 다운로드하는 방법운영 중인 Windows Server 2016 환경에서는 보안 정책이나 최소 설치 구성 때문에 웹 브라우저, wget, curl 같은 다운로드 도구가 없는 경우가 많습니다.PowerShell의 Invoke-WebRequest 사용(권장)기본 사용법powershell -Command "Invoke-WebRequest -Uri '다운로드주소' -OutFile '저장할파일명'"예제powershell -Command "Invoke-WebRequest -Uri 'https://scbyun.com/file.zip' -OutFile 'test.zip'"Certutil을 이용한 파일 다운로드certutil은 원래 인증서 관리용 도구이지만 네트워크 URL.. 더보기 curl을 사용하여 웹사이트 로딩 속도를 테스트하는 방법 curl을 사용하여 웹사이트 로딩 속도를 테스트하는 방법curl은 다양한 시간 지표를 제공하며 이를 통해 웹사이트의 성능을 분석할 수 있습니다.1. 기본적인 시간 지표 확인curl의 -w 또는 --write-out 옵션을 사용하여 웹사이트 요청에 대한 다양한 시간 지표를 출력할 수 있습니다.curl -o /dev/null -s -w "time_namelookup: %{time_namelookup}time_connect: %{time_connect}time_appconnect: %{time_appconnect}time_pretransfer: %{time_pretransfer}time_starttransfer: %{time_starttransfer}time_total: %{time_total}" https:.. 더보기 html2text 명령어 html2text 명령어 html2text는 HTML을 텍스트로 변환하는 도구이며 이를 사용하여 HTML을 해석하고 텍스트로 변환하여 출력합니다. html2text 패키지 설치 CentOS sudo yum install -y html2text Ubuntu sudo apt-get update sudo apt-get install -y html2text HTML 파일을 텍스트로 변환 html2text index.html 출력을 파일에 저장하려면 다음과 같이 리디렉션을 사용 html2text index.html > output.txt curl 명령어로 HTML을 요청하고 해석된 결과를 출력하는 방법 curl -s URL | html2text curl -s 172.19.0.10 $ curl -s 172.19.0.. 더보기 CentOS 7에서 curl을 컴파일하여 HTTP/2를 지원하도록 설치하는 방법 CentOS 7에서 curl을 컴파일하여 HTTP/2를 지원하도록 설치하는 방법 테스트 환경 $ cat /etc/centos-release CentOS Linux release 7.9.2009 (Core) curl 버전 확인 $ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate ID.. 더보기 curl 명령어 curl 명령어기본 구문curl [options...] 옵션--noproxy : 프록시를 사용하지 않는 호스트 목록-x, --proxy [PROTOCOL://]HOST[:PORT] : 지정된 포트에서 프록시 사용--resolve HOST:PORT:ADDRESS : HOST:PORT를 ADDRESS로 강제 해결사용 예시curl noproxycurl --noproxy example.com http://example.comcurl --noproxy localhost,127.0.0.1 http://example.comcurl proxycurl --proxy [PROTOCOL://]HOST[:PORT] [URL]curl -x http://proxy-server:8080 http://example.comcurl -.. 더보기 웹 서버가 HTTP2 프로토콜을 지원하는지 확인하는 방법 웹 서버가 HTTP/2 프로토콜을 지원하는지 확인하는 방법1. 브라우저 개발자 도구브라우저의 개발자 도구를 사용하여 웹 사이트의 리소스 요청 및 응답을 확인할 수 있습니다. 주로 Chrome, Firefox, Safari 등의 브라우저에서는 네트워크 탭에서 HTTP/2 프로토콜로 요청된 리소스를 확인할 수 있습니다. "Protocol" 열에서 "h2"로 표시됩니다. 크롬 브라우저에서 확인하는 방법크롬 브라우저에서 F12를 눌러 개발자 도구를 실행여러(Name, Url, Status) 탭 중 한 곳에서 오른쪽 버튼을 클릭하여 Protocol 항목을 활성화함Protocol 항목이 나오면서 프로토콜 버전을 확인할 수 있음HTTP/1.1 : http/1.1HTTP/2 : h22. curl 명령어curl 명령어를.. 더보기 curl/wget으로 스크립트 다운로드 및 실행하기(bash -x) curl/wget으로 스크립트 다운로드 및 실행하기(bash -x)curl과 wget은 원격 서버에 있는 스크립트를 다운로드하거나 즉시 실행할 때 자주 사용되는 CLI 도구입니다.curl로 스크립트 다운로드하기curl -Ssf https://sangchul.kr/scripte/webconfsync.sh -o /tmp/webconfsync.sh옵션 설정-S 오류 발생 시 에러 메시지 출력-s 진행 상태(progress) 출력 생략-f HTTP 오류(4xx, 5xx) 발생 시 실패 처리-o 출력 파일 지정curl로 스크립트 다운로드 후 즉시 실행하기curl -Ssf https://sangchul.kr/scripte/webconfsync.sh | bash -x동작 방식curl이 스크립트 내용을 표준 출력(st.. 더보기 curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 명령어로 웹사이트 로딩 속도를 테스트하는 방법 curl 버전 정보 $ curl --version curl 7.29.0 (x86_64-redhat-linux-gnu) libcurl/7.29.0 NSS/3.53.1 zlib/1.2.7 libidn/1.28 libssh2/1.8.0 Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp Features: AsynchDNS GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libz unix-sockets http code 출력 curl -s -o /dev/nul.. 더보기 이전 1 2 다음