HttpRequest exception

Dear Guru

i have a code herebelow (IP changed). when i run a tests on the localhost with the index page, it is working fine but when i requested to a server, it if failing with the following error

exception ‘HttpInvalidParamException’ with message ‘Empty or too short HTTP message: ‘.’’ in C:\wamp\www\ ests1.php:5 Stack trace: #0 C:\wamp\www\ ests1.php(5): HttpRequest->send() #1 {main}

$r = new HttpRequest('');
try {
    echo $r->send()->getResponseBody();
} catch (HttpException $ex) {
    echo $ex;

Advise what could be the problem. is a local network address, so I’m guessing that server can be reached from your localhost, but it can’t be reached from the public server, which is why it throws the error.

thanks for the reply, this is being called for the private and not the public. the IP address is reachable( ping)

HttpInvalidParamException sounds quite specific; check this page out. :slight_smile: