RejectedSoftware Forums

Sign up

HTTP client strange response (vibe-d 0.7.21-rc.2)

HTTP client doesn't fetch this url: https://steamcommunity.com/login/home/
Code:

import vibe.d;

void main() {
	requestHTTP("https://steamcommunity.com/login/home/", (scope request) {
		request.method = HTTPMethod.GET;
	}, (scope response) {
		auto result = response.bodyReader.readAll();
		logInfo("status: %s %s", response.statusCode, response.statusPhrase);
	});
}

dub.json:

{
	"name": "test",
	"dependencies": {
		"vibe-d": "==0.7.21-rc.2"
	},
	"versions": ["VibeCustomMain"]
}

outputs:

status: 408 Request Time-out

Changing vibe-d version to 0.7.21-beta.4 (in dub.selections.json):

{
	"fileVersion": 1,
	"versions": {
		"vibe-d": "0.7.21-beta.4",
		"libevent": "2.0.1+2.0.16",
		"openssl": "1.0.0+1.0.0e",
		"libev": "4.0.0+4.04"
	}
}

solves problem:

status: 200 OK

I don't know what is wrong with this page, because other pages (for example https://www.google.ru) are fetched without any problem.

Re: HTTP client strange response (vibe-d 0.7.21-rc.2)

Strange behavior is present in Windows 8 x64 and CentOS 7 x64.

Re: HTTP client strange response (vibe-d 0.7.21-rc.2)

Created a ticket: #874

Re: HTTP client strange response (vibe-d 0.7.21-rc.2)

On Mon, 20 Oct 2014 07:18:47 GMT, Sönke Ludwig wrote:

Created a ticket: #874

Problem has gone in 0.7.21-rc.3