PureBasic 6.00 released !
Re: PureBasic 6.00 Beta 9 released !
OK for the HttpTimeout() function, will reduce the number of optional param for HttpRequest() which is already big.
- RichAlgeni
- Addict
- Posts: 914
- Joined: Wed Sep 22, 2010 1:50 am
- Location: Bradenton, FL
Re: PureBasic 6.00 Beta 9 released !
Maybe the command could be named differently? Such as HTTPRequestE. Adding 'E' to the end, to show it is the Enhanced command, for instance?
Re: PureBasic 6.00 Beta 9 released !
Timeout in B9 is not only used in HTTPRequest() but also in ReceiveHTTPFile(), ReceiveHTTPMemory(), HTTPRequestMemory()RichAlgeni wrote: ↑Sun Jun 05, 2022 8:33 pm Maybe the command could be named differently? Such as HTTPRequestE. Adding 'E' to the end, to show it is the Enhanced command, for instance?
(see statusbar when click on one of them)
So HttpTimeout(<value>) will work for all and need only one command.
Re: PureBasic 6.00 Beta 9 released !
In my version I simply added the Timeout parameter as last optional parameter.
So no change to available code is needed. Only if you need the parameter.
You can use #Null for Header() map if not used.
So no change to available code is needed. Only if you need the parameter.
You can use #Null for Header() map if not used.
- DeanH
- Enthusiast
- Posts: 223
- Joined: Wed May 07, 2008 4:57 am
- Location: Adelaide, South Australia
- Contact:
Re: PureBasic 6.00 Beta 9 released !
My original idea was to use HttpTimeout to set and change as needed.
What about having both a HttpTimeout function and an optional parameter at the end of the HttpRequests? That provides maximum flexibility without breaking code.
What about having both a HttpTimeout function and an optional parameter at the end of the HttpRequests? That provides maximum flexibility without breaking code.
Re: PureBasic 6.00 Beta 9 released !
DesktopWidth() and DesktopHeight() are returning 1920x1080 even though I am running 4K. Ubuntu 20.04.
Really happy to see all this hard work on Pure Basic. Thank you!
Really happy to see all this hard work on Pure Basic. Thank you!
Re: PureBasic 6.00 Beta 10 released !
Beta 10 is available, with some more some improvements:
Code: Select all
- Added: HTTPTimeout() for HttpRequest commands (reverted the changes from beta 9)
- DeanH
- Enthusiast
- Posts: 223
- Joined: Wed May 07, 2008 4:57 am
- Location: Adelaide, South Australia
- Contact:
Re: PureBasic 6.00 Beta 10 released !
Thank you very much, Fred! I appreciate the promptness.
Re: PureBasic 6.00 Beta 10 released !
Thank you Fred and the team for all the hard work.
I hope we are approaching the final version with the changelog shrinking.
Is it possible to automatically add the C compiler in the settings, instead of adding it manually at each beta ?
I hope we are approaching the final version with the changelog shrinking.
Is it possible to automatically add the C compiler in the settings, instead of adding it manually at each beta ?
Re: PureBasic 6.00 Beta 10 released !
Just out of curiosity: How does HTTPTimeout work with threads? Separate values or one value? Also, does it return the previous timeout?
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
Re: PureBasic 6.00 Beta 10 released !
It's one value for the whole app, not per thread. It doesn't return the previous timeout.
-
- Addict
- Posts: 1443
- Joined: Wed Nov 12, 2008 5:01 pm
- Location: Russia
Re: PureBasic 6.00 Beta 10 released !
@Fred: Maybe it's a good idea to get the previous timeout as return value, or by passing special value (like 0 for default and -1 for getting the now set value).
PureBasic 6.04/XProfan X4a/Embarcadero RAD Studio 11/Perl 5.2/Python 3.10
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
Windows 11/Ryzen 5800X/32GB RAM/Radeon 7770 OC/3TB SSD/11TB HDD
Synology DS1821+/36GB RAM/130TB
Synology DS920+/20GB RAM/54TB
Synology DS916+ii/8GB RAM/12TB
- DeanH
- Enthusiast
- Posts: 223
- Joined: Wed May 07, 2008 4:57 am
- Location: Adelaide, South Australia
- Contact:
Re: PureBasic 6.00 Beta 10 released !
Good idea to get the current timeout. Maybe the same function but with a constant that tells the function to return a timeout value rather than set one. CurrentTimeOut = HTTPTimeout(#Pb_Any) or another constant? Or another function? HTTPGetTimeout() ?
Re: PureBasic 6.00 Beta 10 released !
isnt that easy to "remember" using a global variable ?
i.e
global httptimeoutvalue.l
httptimeoutvalue =100
HttpTimeout(httptimeoutvalue)
httptimeoutvalue =500
HttpTimeout(httptimeoutvalue)
...
i.e
global httptimeoutvalue.l
httptimeoutvalue =100
HttpTimeout(httptimeoutvalue)
httptimeoutvalue =500
HttpTimeout(httptimeoutvalue)
...
Christos