Changeset 5950


Ignore:
Timestamp:
Mar 11, 2019 10:38:55 AM (6 years ago)
Author:
nanang
Message:

Misc (re #2147): Updated SSL socket test to include host part in HTTPS request URI, otherwise most likely it will get 400 response.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/src/pjlib-test/ssl_sock.c

    r5836 r5950  
    400400} 
    401401 
    402 #define HTTP_REQ                "GET / HTTP/1.0\r\n\r\n"; 
    403402#define HTTP_SERVER_ADDR        "trac.pjsip.org" 
    404403#define HTTP_SERVER_PORT        443 
     404#define HTTP_REQ                "GET https://" HTTP_SERVER_ADDR "/ HTTP/1.0\r\n\r\n"; 
    405405 
    406406static int https_client_test(unsigned ms_timeout) 
Note: See TracChangeset for help on using the changeset viewer.