
I will test it next week.
Thanks!

thanks, yes I need glasses.HeX0R wrote: Fri Apr 26, 2024 7:13 am You've meant https://atomicwebserver.com/
(you need sharp glasses to see the difference)
I will try adding an absolute expires.Caronte3D wrote: Fri Apr 26, 2024 9:49 am Yes, the fact that the sessionID cookie doesn't remove when the web browser is closed is a pain because you don't know if a request is on the same session or another one.
Anyway, the work you are doing is awesome and... you are very fast implementing needed features![]()
I had the same issue on linux and adding ./ to the paths fixed the issues but I may have missed adding the fixes as I'm working on two branches and the test site is different to the live site.jamirokwai wrote: Sat Apr 27, 2024 8:22 am Currently, I can't open pages locally on macOS. Will try again next week. Maybe, I need to change the host as written in the examples.
But: When starting any of the examples, it throws an error at line 485:
; MessageRequester(*Atomic_Server\Title, "Error: can't create the server (port " + *Atomic_Server\port + " in use ?)")
[09:20:04] Executable type: MacOSX - arm64 (64bit, Unicode, Thread)
[09:20:04] Executable started.
[09:20:04] [ERROR] Atomic_Web_Server3.pbi (Line: 485)
[09:20:04] [ERROR] NSWindow should only be instantiated on the main thread!
[09:20:06] The Program was killed.
Edit: Just downloaded the current version from GitHub, the NSWindow-error is gone for the moment.
Code: Select all
Global server1 = Atomic_Server_Init("atomic_webserver","./www/","127.0.0.1","",80,#PB_Network_IPv4,5000,@CBPostGet(),@CBPostGet())
Atomic_Server_Create_Pack(server1) ;use this to pack the www folder and then include the binary comment it out and recomplie
Atomic_server_Set_PackAddress(server1,?Index,?EndIndex-?Index) ;set the pack address and size
OpenConsole()
If Atomic_Server_Start(server1,-1,1) ;start server no window logs to console
Repeat
Until Input() = "quit" ;type quit to exit
Atomic_Server_Exit(server1)
CloseConsole()
EndIf
DataSection
Index:
IncludeBinary "./www.ezp"
EndIndex:
EndDataSection