Search found 12 matches

by Joubarbe
Wed Mar 29, 2023 7:44 am
Forum: General Discussion
Topic: SpiderBasic 2.50 is out !
Replies: 27
Views: 26548

Re: SpiderBasic 2.50 beta 1 is ready !

Wow, sprite and screen shaders! Any plan of having this feature in PB as well? :)
by Joubarbe
Wed Dec 14, 2022 9:07 pm
Forum: General Discussion
Topic: "This site can't be reached"
Replies: 4
Views: 3704

Re: "This site can't be reached"

I have none. It works if I copy paste the code into a new file, saved on the desktop, but not as a new unsaved file.
by Joubarbe
Wed Dec 14, 2022 6:58 pm
Forum: General Discussion
Topic: "This site can't be reached"
Replies: 4
Views: 3704

Re: "This site can't be reached"

Yes
by Joubarbe
Wed Dec 14, 2022 3:29 pm
Forum: General Discussion
Topic: "This site can't be reached"
Replies: 4
Views: 3704

"This site can't be reached"

When I try to run any example, either from C:\ or C:\Program Files, I got the following error: The web page at http://127.0.0.1:9080/SpiderBasic_Compilation0.html might be temporarily down or it may have moved permanently to a new web address. ERR_UNSAFE_REDIRECT When I copy the code, save it somewh...
by Joubarbe
Wed Oct 12, 2022 10:12 am
Forum: General Discussion
Topic: SpiderBasic 2.40 is out !
Replies: 41
Views: 50291

Re: SpiderBasic 2.40 beta 1 is ready !

Last time I checked (a while!), it was quite complicated, but then I just found this thread by falsam, explaining how to create an Android app, plus other sticky threads. A bit obscure to put that in Tricks'n'Trips no? Should be in the official documentation; I wouldn't know how to distribute my app...
by Joubarbe
Tue Oct 11, 2022 1:32 pm
Forum: General Discussion
Topic: SpiderBasic 2.40 is out !
Replies: 41
Views: 50291

Re: SpiderBasic 2.40 beta 1 is ready !

Any plan to improve the creation process of Android apps?
by Joubarbe
Sun Jan 03, 2021 8:45 am
Forum: Coding Questions
Topic: Http Requests with PB server
Replies: 5
Views: 1775

Re: Http Requests with PB server

Again, how do you get the status code sent by the server?
On thick clients (using PB), you can do the following:

Code: Select all

request = HTTPRequest(#PB_HTTP_Get, "http://localhost:6832/get", "name1=value1&name2=value2")
Debug HTTPInfo(request, #PB_HTTP_StatusCode) ; Outputs 200.
by Joubarbe
Thu Dec 31, 2020 1:56 pm
Forum: Coding Questions
Topic: Http Requests with PB server
Replies: 5
Views: 1775

Re: Http Requests with PB server

Working now. That should solve all my problems. Thanks! EDIT: Why do I still have those two OPTIONS headers, besides the proper PUT and DELETE ones? Hmm... :roll: (ie. 6 #PB_NetworkEvent_Data / requests instead of the 4 expected) EDIT 2: Ok this OPTIONS methods seems to be sent by the browser for pr...
by Joubarbe
Thu Dec 31, 2020 12:18 pm
Forum: Coding Questions
Topic: Http Requests with PB server
Replies: 5
Views: 1775

Re: Http Requests with PB server

Oops, yeah sorry, this one is a good old "Access to XMLHttpRequest at 'http://localhost:6832/delete' from origin 'http://127.0.0.1:9080' has been blocked by CORS policy: Method DELETE is not allowed by Access-Control-Allow-Methods in preflight response." Didn’t know it only affects DELETE ...
by Joubarbe
Thu Dec 31, 2020 9:47 am
Forum: Coding Questions
Topic: Http Requests with PB server
Replies: 5
Views: 1775

Http Requests with PB server

Hi, PB: Procedure SendResponse(clientID.i, response.s, status.s, keep_alive.b = #False) If keep_alive connection.s = "keep-alive" Else connection.s = "close" EndIf template.s = ~"HTTP/1.1 " + status + ~"\r\nAccess-Control-Allow-Origin: *" + ; Private APIs shou...