Added HTTP 400 Error workaround and fixed some bugs.

Signed-off-by: Robert R <mam09cqz@studserv.uni-leipzig.de>