std.net.curl - HTTP.Method.options - perform()
David Eagen
davideagen at mailinator.com
Fri Jul 27 08:39:45 PDT 2012
On Tuesday, 24 July 2012 at 16:45:49 UTC, Alex wrote:
> Hello!
>
> Why does this code print output when I run it?
> - It only happens when the HTTP response Code is == 405
> - 173.194.69.94 is a Google Server for testing
> - Are there any default callbacks which make this output?
>
> CODE:
>
> http://pastebin.com/CZP86Gwh
>
> OUTPUT:
>
> http://pastebin.com/AkA3Fvw1 (Basically a HTML error page)
>
> --Alex
There must be a default onReceive that is writing that to stdout.
If I add this line just before the perform() call the output is
not generated:
http.onReceive = (ubyte[] data) { /+ drop +/ return data.length;
};
-David
More information about the Digitalmars-d
mailing list