You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unit test faild,because of "http://www.boost.org" return "301 Moved Permanently" #836
tests]$ ./cpp-netlib-http-client_get_streaming_test
cpp-netlib-0.12.0-final/libs/network/test/http/client_get_streaming_test.cpp:41: Failure
Expected: 200u
Which is: 200
To be equal to: response.status()
Which is: 301
/home/limenghua/Downloads/cpp-netlib-0.12.0-final/libs/network/test/http/client_get_streaming_test.cpp:42: Failure
Expected: "OK"
To be equal to: response.status_message()
Which is: "Moved Permanently"
Hi @limenghua, in the 0.13 release, we used to connect to boost.org in some of the tests because the site would support chunked transfer encoding. But now they don't allow unencrypted connections any more. We need to find another source for testing chunked transfer encoding. But since you are using the 0.12 release, chunked transfer encoding is not available anyway, so I guess any site allowing unencrypted connections will do.
Activity
umennel commentedon May 3, 2018
Hi @limenghua, in the 0.13 release, we used to connect to boost.org in some of the tests because the site would support chunked transfer encoding. But now they don't allow unencrypted connections any more. We need to find another source for testing chunked transfer encoding. But since you are using the 0.12 release, chunked transfer encoding is not available anyway, so I guess any site allowing unencrypted connections will do.
deanberris commentedon May 8, 2018
Yeah, this one's tricky -- we definitely should update the test to either:
Use HTTPS and chunked transfer encoding.
Set up our own server to make HTTP requests to.
While I'm not a great fan of solution 2, that might be the easiest thing to do in this case.
yhager commentedon May 14, 2018
The test passes for me on 0.13-release branch if I change http to https:
deanberris commentedon May 15, 2018
Cool -- can you send a pull request with that change @yhager?