ensslen
posted this
13 August 2018
I'm having the same trouble. If I run the following
#!/bin/bash
curl -v -X POST "https://emi.azure-api.net/rtd/" \
-H "Ocp-Apim-Subscription-Key: ..." \
--data-ascii "{ \"name\" : \"PocoAWSDataLab\" , \"url\" : \"https://example.execute-api.ap-southeast-2.amazonaws.com/dev/rtd\" }"
curl -v -X POST "https://emi.azure-api.net/rtp/" \
-H "Ocp-Apim-Subscription-Key: ..." \
--data-ascii "{ \"name\" : \"PocoAWSDataLab\" , \"url\" : \"https://example.execute-api.ap-southeast-2.amazonaws.com/dev/rtp\" }"
I get this pair of 204 responses. No call is ever made to the endpoints I supplied:
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 104.210.84.32...
* TCP_NODELAY set
* Connected to emi.azure-api.net (104.210.84.32) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (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, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* 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=*.azure-api.net
* start date: Jan 11 18:29:16 2018 GMT
* expire date: Jan 11 18:29:16 2020 GMT
* subjectAltName: host "emi.azure-api.net" matched cert's "*.azure-api.net"
* issuer: C=US; ST=Washington; L=Redmond; O=Microsoft Corporation; OU=Microsoft IT; CN=Microsoft IT TLS CA 4
* SSL certificate verify ok.
> POST /rtd/ HTTP/1.1
> Host: emi.azure-api.net
> User-Agent: curl/7.54.0
> Accept: */*
> Ocp-Apim-Subscription-Key: ...
> Content-Length: 109
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 109 out of 109 bytes
< HTTP/1.1 204 No Content
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Length: 0
< Expires: -1
< Set-Cookie: ASP.NET_SessionId=xzhzz4ouwafxze1m023esaq0; path=/; HttpOnly
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Mon, 13 Aug 2018 01:36:47 GMT
<
* Connection #0 to host emi.azure-api.net left intact
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 104.210.84.32...
* TCP_NODELAY set
* Connected to emi.azure-api.net (104.210.84.32) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
CApath: none
* TLSv1.2 (OUT), TLS handshake, Client hello (1):
* TLSv1.2 (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, Client hello (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS change cipher, Client hello (1):
* 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=*.azure-api.net
* start date: Jan 11 18:29:16 2018 GMT
* expire date: Jan 11 18:29:16 2020 GMT
* subjectAltName: host "emi.azure-api.net" matched cert's "*.azure-api.net"
* issuer: C=US; ST=Washington; L=Redmond; O=Microsoft Corporation; OU=Microsoft IT; CN=Microsoft IT TLS CA 4
* SSL certificate verify ok.
> POST /rtp/ HTTP/1.1
> Host: emi.azure-api.net
> User-Agent: curl/7.54.0
> Accept: */*
> Ocp-Apim-Subscription-Key: ...
> Content-Length: 109
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 109 out of 109 bytes
< HTTP/1.1 204 No Content
< Cache-Control: no-cache
< Pragma: no-cache
< Content-Length: 0
< Expires: -1
< Set-Cookie: ASP.NET_SessionId=chpp1yhzyefz0ikolz1z4uzx; path=/; HttpOnly
< X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
< Date: Mon, 13 Aug 2018 01:36:48 GMT
<
* Connection #0 to host emi.azure-api.net left intact