Procedure HttpGetEvent(Success, Result$, UserData)
If Success
Debug Result$
Else
Debug "HTTPRequest(): Error"
EndIf
EndProcedure
; Get the content of this file, and display it in the debug window
;
HTTPRequest(#PB_HTTP_Get, "https://www.adouros.gr/projects/papertrade/pelates.php", "", @HttpGetEvent())
;HTTPRequest(#PB_HTTP_Get, "https://www.adouros.gr/projects/papertrade/log_file.txt", "", @HttpGetEvent())
Both files, are existed and took results if I put the URL$ in a browse window.
I just received "HTTPRequest(): Error"
What am I missing?
Regards.
I.e., for security reasons, access to a resource of another address has been denied.
If you own the web server that runs this php file, then you can allow CORS access. If not, then you only have the diversions via a component that is located on your web server.
I.e., for security reasons, access to a resource of another address has been denied.
If you own the web server that runs this php file, then you can allow CORS access. If not, then you only have the diversions via a component that is located on your web server.
Thank you very much for your response!
I will check it.
For the record, I got the save error if I try to access the script from localhost which running xampp server. E.g.
localhost:8080/papertrade/pelates.php
Is it expected?
Your SpiderBasic code must be exported and run from the same server as your script.
If you are running your code from the IDE you will have the same problem.
Paul wrote: ↑Tue Apr 11, 2023 9:03 pm
Your SpiderBasic code must be exported and run from the same server as your script.
If you are running your code from the IDE you will have the same problem.
Thanks Paul.
I run the code, in both cases, from the IDE
I will try to export it
Regards