#include <curl/curl.h>
int main(int argc, char *argv[])
{
CURLcode ret;
CURL *hnd;
hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_BUFFERSIZE, 102400L);
curl_easy_setopt(hnd, CURLOPT_URL, "http://example.com");
curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L);
curl_easy_setopt(hnd, CURLOPT_USERAGENT, "curl/8.2.1");
curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 50L);
curl_easy_setopt(hnd, CURLOPT_HTTP_VERSION, (long)CURL_HTTP_VERSION_2TLS);
curl_easy_setopt(hnd, CURLOPT_FTP_SKIP_PASV_IP, 1L);
curl_easy_setopt(hnd, CURLOPT_TCP_KEEPALIVE, 1L);
ret = curl_easy_perform(hnd);
curl_easy_cleanup(hnd);
hnd = NULL;
return (int)ret;
}
Safari와(과) Firefox에서도 동일하게 작동합니다.
경고: 복사한 명령에는 쿠키나 기타 민감한 데이터가 포함될 수 있습니다. 다른 사람과 명령을 공유할 때 주의하세요. 웹사이트 쿠키를 보내는 것은 비밀번호를 보내는 것과 같습니다.
Chrome와(과) Firefox에서도 동일하게 작동합니다.
경고: 복사한 명령에는 쿠키나 기타 민감한 데이터가 포함될 수 있습니다. 다른 사람과 명령을 공유할 때 주의하세요. 웹사이트 쿠키를 보내는 것은 비밀번호를 보내는 것과 같습니다.
Chrome와(과) Safari에서도 동일하게 작동합니다.
경고: 복사한 명령에는 쿠키나 기타 민감한 데이터가 포함될 수 있습니다. 다른 사람과 명령을 공유할 때 주의하세요. 웹사이트 쿠키를 보내는 것은 비밀번호를 보내는 것과 같습니다.
입력한 curl 명령이나 변환 결과를 전송하거나 기록하지 않습니다. 이 사이트는 정적 웹사이트이며 변환은 JavaScript를 사용해 전적으로 브라우저 안에서 이루어집니다.
VS Code 확장과 npm에서 설치할 수 있는 명령줄 도구도 있습니다:
npm install -g curlconverter