Issue 451

A better fix for issue #451. It allows also binary data to be retrieved over HTTP interface.