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

ikod geller.garry at gmail.com
Sun Feb 16 09:13:54 UTC 2020


On Saturday, 15 February 2020 at 20:38:51 UTC, Anonymouse wrote:
> On Saturday, 15 February 2020 at 16:25:42 UTC, Gregor Mückl

> When testing to confirm I ran into a bug[2] where the body is 
> sometimes empty, but outside of fringe cases it should work.
>
> [1]: https://code.dlang.org/packages/requests
> [2]: https://github.com/ikod/dlang-requests/issues/115

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



More information about the Digitalmars-d-learn mailing list