Use more reliable host in example-tls-client

Apparently TLS on mbed.org is broken again
This commit is contained in:
Manuel Pégourié-Gonnard 2015-08-17 14:19:38 +02:00
parent 708b6eeca1
commit 42618b870a
2 changed files with 10 additions and 9 deletions

View file

@ -57,7 +57,7 @@ To build and run this example the requirements below are necessary:
10. The output in the terminal window should look like:
```
{{timeout;120}}
{timeout;120}}
{{host_test_name;default}}
{{description;mbed TLS example HTTPS client}}
{{test_id;MBEDTLS_EX_HTTPS_CLIENT}}
@ -66,6 +66,7 @@ To build and run this example the requirements below are necessary:
Client IP Address is 192.168.0.2
Connecting to developer.mbed.org:443
developer.mbed.org address: 217.140.101.20
TLS connection to developer.mbed.org established
Server certificate:
cert. version : 3
@ -82,25 +83,25 @@ To build and run this example the requirements below are necessary:
ext key usage : TLS Web Server Authentication, TLS Web Client Authentication
Certificate verification passed
HTTPS: Received 473 chars from server
HTTPS: Received 469 chars from server
HTTPS: Received 200 OK status ... [OK]
HTTPS: Received 'Hello world!' status ... [OK]
HTTPS: Received message:
HTTP/1.1 200 OK
Server: nginx/1.7.10
Date: Tue, 28 Jul 2015 14:32:30 GMT
Date: Mon, 17 Aug 2015 11:46:19 GMT
Content-Type: text/plain
Content-Length: 14
Connection: keep-alive
Last-Modified: Fri, 27 Jul 2012 13:30:34 GMT
Accept-Ranges: bytes
Cache-Control: max-age=36000
Expires: Wed, 29 Jul 2015 00:32:30 GMT
Expires: Mon, 17 Aug 2015 21:46:19 GMT
X-Upstream-L3: 172.17.42.1:8080
X-Upstream-L2: developer-sjc-indigo-1-nginx
X-Upstream-L1-next-hop: 217.140.101.34:8001
X-Upstream-L1: developer-sjc-indigo-border-nginx
X-Upstream-L2: developer-sjc-cyan-1-nginx
X-Upstream-L1-next-hop: 217.140.101.22:8001
X-Upstream-L1: developer-sjc-cyan-border-nginx
Hello world!
{{success}}

View file

@ -63,11 +63,11 @@ int main() {
#include "lwipv4_init.h"
namespace {
const char *HTTPS_SERVER_NAME = "mbed.org";
const char *HTTPS_SERVER_NAME = "developer.mbed.org";
const int HTTPS_SERVER_PORT = 443;
const int RECV_BUFFER_SIZE = 600;
const char HTTPS_PATH[] = "/assets/uploads/hello.txt";
const char HTTPS_PATH[] = "/media/uploads/mbed_official/hello.txt";
const size_t HTTPS_PATH_LEN = sizeof(HTTPS_PATH) - 1;
/* Test related data */