Getting the body of a HTTP Request

Chris Wright via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Jan 27 15:50:34 PST 2016


On Wed, 27 Jan 2016 23:42:54 +0000, brian wrote:
> Body: vibe.stream.counting.EndCallbackInputStream Body to String:
> Body to String: HTTP/1.1 302 Found

You got an HTTP redirect as a response. There should be a header called 
Location containing a URL. Redo the request with that URL.

Most HTTP libraries give you an option to automatically follow redirects, 
but vibe.d appears not to.


More information about the Digitalmars-d-learn mailing list