curl -v --location --request POST '
https://www._client_host_.com/api/v2_soap/' --header 'SOAPAction: "urn:Mage_Api_Model_Server_V2_HandlerAction"' --header 'Content-Type: text/xml; charset="utf-8"' --data-raw '<Envelope xmlns="
http://schemas.xmlsoap.org/soap/envelope/">
<Body>
<login>
<username></username>
<apiKey></apiKey>
</login>
</Body>
</Envelope>'
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 192.240.171.50:443...
* TCP_NODELAY set
* Connected to www._client_host_.com (192.240.171.50) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: CN=_client_host_.com
* start date: May 23 23:10:21 2020 GMT
* expire date: Aug 21 23:10:21 2020 GMT
* subjectAltName: host "www._client_host_.com" matched cert's "www._client_host_.com"
* issuer: C=US; O=Let's Encrypt; CN=Let's Encrypt Authority X3
* SSL certificate verify ok.
> POST /api/v2_soap/ HTTP/1.1
> Host: www._client_host_.com
> User-Agent: curl/7.68.0
> Accept: */*
> SOAPAction: "urn:Mage_Api_Model_Server_V2_HandlerAction"
> Content-Type: text/xml; charset="utf-8"
> Content-Length: 192
>
* upload completely sent off: 192 out of 192 bytes
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Date: Tue, 14 Jul 2020 08:57:43 GMT
< Server: Apache
< Set-Cookie: PHPSESSID=glb8rlg296d2ssdki0q2qjh1v5; expires=Tue, 14-Jul-2020 09:57:43 GMT; Max-Age=3600; path=/; domain=_client_host_.com; secure; HttpOnly
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
< Pragma: no-cache
< Set-Cookie: CUSTOMER=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; domain=_client_host_.com; secure; httponly
< Set-Cookie: CUSTOMER_INFO=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; domain=_client_host_.com; secure; httponly
< Set-Cookie: CUSTOMER_AUTH=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/; domain=_client_host_.com; secure; httponly
< Content-Length: 321
< Vary: Accept-Encoding,User-Agent
< Content-Type: text/xml; charset=UTF-8
<
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>6</faultcode><faultstring>Required parameter is missing, for more details see "exception.log".</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
* Connection #0 to host www._client_host_.com left intact