{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/cpprestsdk/issues/27","repository_url":"https://api.github.com/repos/Microsoft/cpprestsdk","labels_url":"https://api.github.com/repos/Microsoft/cpprestsdk/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/cpprestsdk/issues/27/comments","events_url":"https://api.github.com/repos/Microsoft/cpprestsdk/issues/27/events","html_url":"https://github.com/Microsoft/cpprestsdk/issues/27","id":119798726,"number":27,"title":"outside_tests hit servers with behavior that depends on country of origin","user":{"login":"Alexander-Shukaev","id":911281,"avatar_url":"https://avatars.githubusercontent.com/u/911281?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexander-Shukaev","html_url":"https://github.com/Alexander-Shukaev","followers_url":"https://api.github.com/users/Alexander-Shukaev/followers","following_url":"https://api.github.com/users/Alexander-Shukaev/following{/other_user}","gists_url":"https://api.github.com/users/Alexander-Shukaev/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexander-Shukaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexander-Shukaev/subscriptions","organizations_url":"https://api.github.com/users/Alexander-Shukaev/orgs","repos_url":"https://api.github.com/users/Alexander-Shukaev/repos","events_url":"https://api.github.com/users/Alexander-Shukaev/events{/privacy}","received_events_url":"https://api.github.com/users/Alexander-Shukaev/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/cpprestsdk/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2015-12-01T20:16:53Z","updated_at":"2016-09-20T04:55:00Z","closed_at":null,"body":"Built from the latest revision (78f8554) in the `master` branch:\r\n\r\n```\r\nStarting test case outside_tests:outside_cnn_dot_com...\r\n../tests/functional/http/client/outside_tests.cpp:56: error: Failure in outside_cnn_dot_com: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\n../tests/functional/http/client/outside_tests.cpp:61: error: Failure in outside_cnn_dot_com: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\nTest case outside_tests:outside_cnn_dot_com FAILED\r\nStarting test case outside_tests:outside_google_dot_com...\r\n../tests/functional/http/client/outside_tests.cpp:73: error: Failure in outside_google_dot_com: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\n../tests/functional/http/client/outside_tests.cpp:73: error: Failure in outside_google_dot_com: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\nTest case outside_tests:outside_google_dot_com FAILED\r\nStarting test case outside_tests:multiple_https_requests...\r\n../tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\n../tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\n../tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\n../tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\n../tests/functional/http/client/outside_tests.cpp:87: error: Failure in multiple_https_requests: CHECK_EQUAL(status_codes::OK, response.status_code()) where status_codes::OK=200 and response.status_code()=302\r\n FAILED\r\nTest case outside_tests:multiple_https_requests FAILED\r\nStarting test case outside_tests:reading_google_stream...\r\n../tests/functional/http/client/outside_tests.cpp:107: error: Failure in reading_google_stream: CHECK_EQUAL(strcmp((const char *) chars, \"<!doctype html><html itemscope=\\\"\\\" itemtype=\\\"http://schema.org/WebPage\\\"\"), 0) where strcmp((const char *) chars, \"<!doctype html><html itemscope=\\\"\\\" itemtype=\\\"http://schema.org/WebPage\\\"\")=1 and 0=0\r\n FAILED\r\nTest case outside_tests:reading_google_stream FAILED\r\n```\r\n\r\nAny ideas?\r\n\r\nKind regards,\r\nAlexander"},"comment":{"url":"https://api.github.com/repos/Microsoft/cpprestsdk/issues/comments/248201340","html_url":"https://github.com/Microsoft/cpprestsdk/issues/27#issuecomment-248201340","issue_url":"https://api.github.com/repos/Microsoft/cpprestsdk/issues/27","id":248201340,"user":{"login":"iamAzeem","id":7128328,"avatar_url":"https://avatars.githubusercontent.com/u/7128328?v=3","gravatar_id":"","url":"https://api.github.com/users/iamAzeem","html_url":"https://github.com/iamAzeem","followers_url":"https://api.github.com/users/iamAzeem/followers","following_url":"https://api.github.com/users/iamAzeem/following{/other_user}","gists_url":"https://api.github.com/users/iamAzeem/gists{/gist_id}","starred_url":"https://api.github.com/users/iamAzeem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamAzeem/subscriptions","organizations_url":"https://api.github.com/users/iamAzeem/orgs","repos_url":"https://api.github.com/users/iamAzeem/repos","events_url":"https://api.github.com/users/iamAzeem/events{/privacy}","received_events_url":"https://api.github.com/users/iamAzeem/received_events","type":"User","site_admin":false},"created_at":"2016-09-20T04:55:00Z","updated_at":"2016-09-20T04:55:00Z","body":"I have the same issue on Mac OS X. Here's the list of failed tests:-\r\n\r\n```\r\n**** outside_tests:outside_cnn_dot_com FAILED ****\r\n**** outside_tests:outside_google_dot_com FAILED ****\r\n**** outside_tests:multiple_https_requests FAILED ****\r\n**** outside_tests:reading_google_stream FAILED ****\r\n**** outside_tests:server_hostname_mismatch FAILED ****\r\n**** authentication_tests:sni_with_older_server_test FAILED ****\r\n**** authentication_tests:sni_explicit_hostname FAILED ****\r\n**** authentication_tests:hostname_mismatch FAILED ****\r\n```\r\n\r\nUsing curl shows the redirections. That means the tests have not been updated so far.\r\nHere are the curl results:-\r\n\r\nCNN:\r\n```\r\n$ curl -I http://www.cnn.com/\r\nHTTP/1.1 302 Found\r\nServer: Varnish\r\nRetry-After: 0\r\nContent-Length: 0\r\nLocation: http://edition.cnn.com/\r\nAccept-Ranges: bytes\r\nDate: Tue, 20 Sep 2016 04:51:02 GMT\r\nVia: 1.1 varnish\r\nConnection: close\r\nSet-Cookie: countryCode=PK; Domain=.cnn.com\r\nX-Served-By: cache-lhr6343-LHR\r\nX-Cache: HIT\r\nX-Cache-Hits: 0\r\n```\r\n\r\nGoogle:\r\n```\r\n$ curl -I http://www.google.com/\r\nHTTP/1.1 302 Found\r\nLocation: http://www.google.com.pk/?gws_rd=cr&ei=o8DgV4T-LIPTU9f4rXA\r\nCache-Control: private\r\nContent-Type: text/html; charset=UTF-8\r\nP3P: CP=\"This is not a P3P policy! See https://www.google.com/support/accounts/answer/151657?hl=en for more info.\"\r\nDate: Tue, 20 Sep 2016 04:52:51 GMT\r\nServer: gws\r\nContent-Length: 259\r\nX-XSS-Protection: 1; mode=block\r\nX-Frame-Options: SAMEORIGIN\r\nSet-Cookie: NID=86=jaM6fxcpSqTxvKBVYiSVli7BeIq9B6NCTA2pL0g6cIfekZdg3DIMzB_A_xNzQW6WsE9-Iq-tvNkmT9OUNwzge1KzeeDlNBD51NsgmFeJXImHHvDIwxx0eTlMdke1_iKo; expires=Wed, 22-Mar-2017 04:52:51 GMT; path=/; domain=.google.com; HttpOnly\r\n```\r\n\r\nBut, what about the other failures? Any thoughts?"}}
{"actor":{"display_login":"iamAzeem"}}