Help HTTP Request Help

Joined
Jun 4, 2019
Messages
13
Solutions
1
Reaction score
0
Im trying do a simple HTTP Request in Cleo, but isnt returning a string:
Code:
CONST
    HOST = $_ZRHOST
END

0AC8: HOST = allocate_memory_size 64
0AD3: HOST = format "wyvernserver.000webhostapp.com"

:main
wait 100
if 0ADC:   test_cheat "x"
then
    0AB1: call_scm_func @GetModList 0
    wait 2000
end
jump @main

:GetModList
0AC8: 29@ = allocate_memory_size 24
0AD3: 29@ = format "cleolist.php"

0AC8: 28@ = allocate_memory_size 1500

0AF8: "Host: %s/%s" -1 HOST 29@
0AB1: call_scm_func @HTTP_GET 4 host HOST file_path 29@ response_buffer 28@ is_https true _ret_is_success 31@

if 31@ == true
then
    0AF8: "Response: \"%s\"" -1 28@
else
    0AF8: "REQUEST FAILED" -1
end

//0AB1: call_scm_func @WriteFile 1 28@

0AC9: free_allocated_memory 28@
0AC9: free_allocated_memory 29@
0AB2: ret 0

PHP Test Code:
PHP:
<?php
echo "abc";
?>

 
Top