From some tests I did, I see that readdata fails... It's a shame... GetResponseBody seems to get the beginning of the result, but not all the response. I guess it's related to the content sent. It starts with "II*" and followed some special characters but everything after "II*" is truncated (I guess some null?)...
It's a shame because curl can download and save the tiff to a file. But I cannot read the file using fileopen (probably due to the reason mentioned before)...
But this works for me:
long ll_fileno
string ls_command = "curl http://localhost/aaa.tif -o ", ls_filename = "C:\SomePath\aaa.tif"
run(ls_command + ls_filename, minimized!)
// I put some delay to be sure that the file is downloaded.
// Instead you could use Roland's Smith RunAndWait (https://www.topwizprogramming.com/freecode_runandwait.html).
sleep(1)
ip_1.LoadPicture(ls_filename)
// The image is deleted after loading.
if fileexists(ls_filename) then filedelete(ls_filename)
Andreas.