I downloaded version 1.08 but get errors when compiling basic HTTP examples
gr
Cor
You'll be a little more specific.. What errors/what examples?
Although, you need to be aware that Http command set was remove and has been replaced HTTP library.
To activate the library, use #include "http" at the top of your code.
I use the following code, that came with 1.08
[pbcode]
; PROJECT : Basic HTTP
; AUTHOR : Underware Design
; CREATED : 13-8-2004
; EDITED : 31-7-2005
Cls 0
me=GetFreeHttp()
OpenHTTP me,"GetSize","",""
HTTPASync me,1
HTTPMode me,1
HTTPRequestSize me,"http://files.thegamecreators.com/darkbasic/trial/dbdemo113.exe"
Repeat
Cls 0
Print "loop:"+Str$(lp)
Print GetHttpTotalSize(me)
Inc lp
Sync
Until GetHttpStatus(me)=1
Print "Done"
CloseHTTP me
Sync
WaitKey
[/pbcode]
QuoteYou'll be a little more specific.. What errors/what examples?
Although, you need to be aware that Http command set was remove and has been replaced HTTP library.
To activate the library, use #include "http" at the top of your code.
[snapback]6414[/snapback]
Ahh I see, you've mostly likely installed 1.08 over a previous install. As that code is from PB1.073 (and bellow). It comes from the now obsolete "Examples/Internet and networking" (or something to that effect). That folder is not included in the PB1.08
The updated HTTP (library) examples can be found in the Examples/Http folder.
Thanks for the quick response Kevin,
That was the problem, I will uninstall the previous version and install 1.08
gr
Cor
QuoteAhh I see, you've mostly likely installed 1.08 over a previous install. As that code is from PB1.073 (and bellow). It comes from the now obsolete "Examples/Internet and networking" (or something to that effect). That folder is not included in the PB1.08
The updated HTTP (library) examples can be found in the Examples/Http folder.
[snapback]6416[/snapback]