mirror of
https://github.com/curl/curl.git
synced 2026-07-31 11:38:06 +03:00
opts unfold
This commit is contained in:
parent
0ddd0cc37e
commit
98b62769bc
4 changed files with 4 additions and 8 deletions
|
|
@ -68,8 +68,7 @@ int main(void)
|
|||
|
||||
if(curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/api");
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_ALGORITHM,
|
||||
CURLHTTPSIG_ED25519);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_ALGORITHM, CURLHTTPSIG_ED25519);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_KEY,
|
||||
"9f8362f87a484a954e6e740c5b4c0e84"
|
||||
"229139a20aa8ab56ff66586f6a7d29c5");
|
||||
|
|
|
|||
|
|
@ -84,8 +84,7 @@ int main(void)
|
|||
headers = curl_slist_append(headers, "User-Agent: MyApp/1.0");
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/api");
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_ALGORITHM,
|
||||
CURLHTTPSIG_ED25519);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_ALGORITHM, CURLHTTPSIG_ED25519);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_KEY,
|
||||
"9f8362f87a484a954e6e740c5b4c0e84"
|
||||
"229139a20aa8ab56ff66586f6a7d29c5");
|
||||
|
|
|
|||
|
|
@ -69,8 +69,7 @@ int main(void)
|
|||
|
||||
if(curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/api");
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_ALGORITHM,
|
||||
CURLHTTPSIG_ED25519);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_ALGORITHM, CURLHTTPSIG_ED25519);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_KEY,
|
||||
"9f8362f87a484a954e6e740c5b4c0e84"
|
||||
"229139a20aa8ab56ff66586f6a7d29c5");
|
||||
|
|
|
|||
|
|
@ -55,8 +55,7 @@ int main(void)
|
|||
|
||||
if(curl) {
|
||||
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com/api");
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_ALGORITHM,
|
||||
CURLHTTPSIG_ED25519);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_ALGORITHM, CURLHTTPSIG_ED25519);
|
||||
curl_easy_setopt(curl, CURLOPT_HTTPSIG_KEY,
|
||||
"9f8362f87a484a954e6e740c5b4c0e84"
|
||||
"229139a20aa8ab56ff66586f6a7d29c5");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue