How to get to body of HTTP 500 error with std.net.curl.get()?

Anonymouse zorael at gmail.com
Sun Feb 16 14:48:41 UTC 2020


On Sunday, 16 February 2020 at 09:13:54 UTC, ikod wrote:
> Just a note - this is not a bug, server really send empty body:
>
> < HTTP/1.1 500 Internal Server Error
> < cache-control: private
> < server: Microsoft-IIS/10.0
> < x-aspnetmvc-version: 5.1
> < access-control-allow-origin: *
> < x-aspnet-version: 4.0.30319
> < request-context: 
> appId=cid-v1:7585021b-2db7-4da6-abff-2cf23005f0a9
> < access-control-expose-headers: Request-Context
> < x-powered-by: ASP.NET
> < date: Sat, 15 Feb 2020 20:44:03 GMT
> < content-length: 0
> < 0 bytes of body received

Yes, my bad. I was assuming curl's output was what was sent.


More information about the Digitalmars-d-learn mailing list