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 …
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 …