News:

Building a 3D Ray Tracer  By stevmjon

Main Menu

Basic HTTP

Started by Cor, July 31, 2005, 01:24:31 PM

Previous topic - Next topic

Cor

I downloaded version 1.08 but get errors when compiling basic HTTP examples

gr

Cor
Cor de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com

kevin

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.

Cor

#2
I use the following code, that came with 1.08

PlayBASIC Code: [Select]
; 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




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.
Cor de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com

kevin

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.

Cor

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.
Cor de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
http://www.chordplanet.com