Anonymous - 2011-03-22

Hi guys,
how can I do a http request and get the result back into midletpascal ???
Currently I have:

function GetHTTP_Response (URL: string): String;
var
  httpConn: http;
begin
  if openHttp(httpConn, URL) then
  begin
    setHttpMethod(httpConn, 'GET');
    GetHTTP_Response := getHttpResponse (httpConn);
    closeHttp (httpConn);
  end
  else
    GetHTTP_Response := 'ERROR';
end;

I can't seem to get anything to work - it makes the connection to the server, then, nothing …