Normally, in today's world developers test web APIs using Postman (or something similar).
Quote:
Postman is used by 6 million developers and more than 200,000 companies to access 130 million APIs every month.
FWIW, I work with web APIs every day and have not used curl in many years for testing an API. The dev world has moved on to very good tools for this in the last few years. I recommend you download, learn and usePostMan, or a free browser extension, to test API end points. It's a very good web API testing tool used by over 6 million web developers, including your truly.
Frankly, I have tried and used these tools, and in my experience using PostMan will have you a lot of development time.
Hello,
I try to take out of the command curl the info of the time...
time curl --write \"Downloaded %{time total}\" -o ......
but having some problem. (1 Reply)
Hi,
I am using linux curl command to login to the website. Website is using http protocol. My question is how to protect "username and password" while posting the data to the website to avoid man in the middle attack.
Is posting the sensitive data(password) using curl is secure?.
Is digest... (6 Replies)
Hi,
I do not find curl command in HPUX.
I used to use curl command in solaris to download files onto the server using the below command.
/opt/boksm/lib/curl http://mymachine.net:9191/faci/TSDM\$dm-orbeon/artifact/my-ear.zip -o my-ear.zip
If not curl how can the same be achived... (4 Replies)
HI I am trying to write a script where i can enter a dvd's bar code at the cli and return the price sites will pay for the dvd.
the bard code im using for testing is
this site is
through use of httpfox i have found some info whic i need to use with curl
ctl00$ScriptManager1... (4 Replies)
Hi All,
I am using below curl commad and getting output data correctly
curl -k -u AASSDD:PPOOII -d "output_mode=csv" --data-urlencode search='search source=*/AASSDDFF/PPOOLLKK**/94.0*ASD-RST* "Caused by" OR "Error: LISTENER WILL BE DISABLED" OR java.lang.reflect.InvocationTargetException |... (1 Reply)
hi,
i have curl command to POST a soap request to web service. I have a file (query.xml) which has all the soap message attached to it I just don't seem to be able to properly post it.
curl command
curl -s -H "Content-Type: text/soap+xml;charset=UTF-8" -H "SOAPAction:" -d @query.xml... (2 Replies)
I am trying post SOAP header from file to curl command.
The curl command is
curl -vk -H "$(cat curl-test1.txt)" -X POST https://xvcfvusdgfsd.sdfjd.gf/cmsws/CMSService
The contet of curl file is
POST: https://cmsuat.chrysler.com/cmsusws/CMSService HTTP/1.1
SOAPAction:... (1 Reply)
is there a different way to do the following:
curl -k -H "Content-Type:application/json" -X POST -d'{"api_token": "33blah526c-6bla71-441b-491b-0blahca08"}' https://10.10.10.10/api/1.4/auth/session -c /tmp/myhost01.myhost.com
im seeking to use a different method because i'm running into TLS... (1 Reply)
Hi
I need to get rates for different security form REST API . the API is oauth 2.0 secured.
i need to use curl command to get json response from api .
token URL - is HTTP
data URL is - HTTPS
when trigger my command from bash script it passing and failing intermittently with... (0 Replies)
Discussion started by: shobhit.working
0 Replies
LEARN ABOUT MOJAVE
curlopt_proxy_ssl_verifyhost
CURLOPT_PROXY_SSL_VERIFYHOST(3) curl_easy_setopt options CURLOPT_PROXY_SSL_VERIFYHOST(3)NAME
CURLOPT_PROXY_SSL_VERIFYHOST - verify the proxy certificate's name against host
SYNOPSIS
#include <curl/curl.h>
CURLcode curl_easy_setopt(CURL *handle, CURLOPT_PROXY_SSL_VERIFYHOST, long verify);
DESCRIPTION
Pass a long set to 2L as asking curl to verify in the HTTPS proxy's certificate name fields against the proxy name.
This option determines whether libcurl verifies that the proxy cert contains the correct name for the name it is known as.
When CURLOPT_PROXY_SSL_VERIFYHOST(3) is 2, the proxy certificate must indicate that the server is the proxy to which you meant to connect
to, or the connection fails.
Curl considers the proxy the intended one when the Common Name field or a Subject Alternate Name field in the certificate matches the host
name in the proxy string which you told curl to use.
When the verify value is 1L, curl_easy_setopt will return an error and the option value will not be changed due to old legacy reasons.
When the verify value is 0L, the connection succeeds regardless of the names used in the certificate. Use that ability with caution!
See also CURLOPT_PROXY_SSL_VERIFYPEER(3) to verify the digital signature of the proxy certificate. If libcurl is built against NSS and
CURLOPT_PROXY_SSL_VERIFYPEER(3) is zero, CURLOPT_PROXY_SSL_VERIFYHOST(3) is also set to zero and cannot be overridden.
DEFAULT
2
PROTOCOLS
All protocols when used over a HTTPS proxy.
EXAMPLE
CURL *curl = curl_easy_init();
if(curl) {
curl_easy_setopt(curl, CURLOPT_URL, "https://example.com");
/* Set the default value: strict name check please */
curl_easy_setopt(curl, CURLOPT_PROXY_SSL_VERIFYHOST, 2L);
curl_easy_perform(curl);
}
AVAILABILITY
Added in 7.52.0.
If built TLS enabled.
RETURN VALUE
Returns CURLE_OK if TLS is supported, and CURLE_UNKNOWN_OPTION if not.
If 1 is set as argument, CURLE_BAD_FUNCTION_ARGUMENT is returned.
SEE ALSO CURLOPT_PROXY_SSL_VERIFYPEER(3), CURLOPT_PROXY_CAINFO(3), , CURLOPT_SSL_VERIFYPEER(3), CURLOPT_CAINFO(3), ,
libcurl 7.54.0 December 16, 2016 CURLOPT_PROXY_SSL_VERIFYHOST(3)