Re: Getting the body of a HTTP Request

2016-01-28 Thread yawniek via Digitalmars-d-learn
On Wednesday, 27 January 2016 at 23:42:54 UTC, brian wrote: Anyone able to shed some light on what the structure of the response is, and how I can read/output it all? Regards Brian its unlikely that vibe client misses something. for debugging i would try to go trough all requests with curl

Getting the body of a HTTP Request

2016-01-27 Thread brian via Digitalmars-d-learn
Hello forumites I am using vibe to connect to an (internal) API however, an am expecting to get back an authorization token with the body of a HTTP POST response. /* start code snippet */ shared static this() {

Re: Getting the body of a HTTP Request

2016-01-27 Thread Chris Wright via Digitalmars-d-learn
On Wed, 27 Jan 2016 23:42:54 +, 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

Re: Getting the body of a HTTP Request

2016-01-27 Thread brian via Digitalmars-d-learn
On Wednesday, 27 January 2016 at 23:50:34 UTC, Chris Wright wrote: On Wed, 27 Jan 2016 23:42:54 +, 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

Re: Getting the body of a HTTP Request

2016-01-27 Thread Chris Wright via Digitalmars-d-learn
On Thu, 28 Jan 2016 00:16:12 +, brian wrote: > On Wednesday, 27 January 2016 at 23:50:34 UTC, Chris Wright wrote: >> On Wed, 27 Jan 2016 23:42:54 +, brian wrote: >>> Body: vibe.stream.counting.EndCallbackInputStream Body to String: Body >>> to String: HTTP/1.1 302 Found >> >> You got an