t e k t o n i c a Web Development | Mobile Computing | Embedded Systems
Projects | Company | Partners
-

- - -
HTTPLib, a HTTP library for NSBasic.
HTTPLib - An HTTP Library for NSBasic/Palm

The HTTPLib library is an HTTP library for NSBasic on PalmOS powered PDAs. It allows an application developer to write NSBasic programs that interact with a web service over the Internet via the HTTP or the, secure, HTTPS protocol.

HTTPLib, topologic overview of the architecture.

You could use it to grab a webpage from the Internet. Altough this can be usefull, this library does not understand the HTML stream that will be returned. You would still need to parse the HTML and write up an NSBasic program to visualise it. Instead, this library is intented to be used to access arbitrary generated data coming from an application server on the Internet. And this opens up a whole new world for the application developer. Instead of an HTML page, you could return a new workschedule for a field engineer or the balance on a bank account. The application server can be as simple as a CGI script or an ASP page or as complex as an industry strength application server, backed up by a database. Look at the examples section for some ideas. Actually, this library allows you to leverage the HTTP protocol as a remote method interface (RMI) protocol.

Some ideas for further exploration:

Field force automation.
Getting a new work-schedule for a field engineer.
Remote synchronisation.
Synchronizing 'on-the-field' data with a remote backend.
Remote data access.
Databases that are too big to fit on the device can be accessed remotely, e.g. inventory management.

The figure explains the topology of a typical usage for the HTTPLib library. First the PalmOS PDA connects to the Internet, if already not connected. Typically this is a dial-in connection to an ISP, but it can also be that the PalmOS PDA is connected to a wireless network, using some kind of RF equipment (WLAN, Palm wireless modem, ...). You can even connect the PalmOS PDA by using a wired serial connection to a host computer via PPP or SLIP (Cradle). After the PalmOS PDA has acquired a connection, the request is send out, to a server application, identified by a URL. This application interprets the parameters send to it and takes appropriate action. In it's most simple form, this action can be returning a static HTML page, but it can also trigger a complex database lookup or transaction. After the result has been prepared it is send back to the application on the PDA. This client side application will interpret (parse) the returned datastring and do some client side processing. This can be a simple visualisation or it can be database update or anything else that is required by your application.

Pricing
We have two licensing policies, free and commercial.

Free license

The library is free for non-commercial use, this includes applications that are freely distributed. If the application is freely distributed, but the customer has to pay for the web service, then the commercial license needs to be used! If you want to obtain a free license key, do not hesitate to mail info@tektonica.com. If you clearly state the nature of your application, and the fact that it is free, you'll get a free license key.

Commercial license

The commercial license consists of 2 parts. First you pay a fixed fee once to acquire the HTTPLib library. Then there is a pay-per-seat. For every device that runs the application you'll have to pay a one-time fee. Please contact info@tektonica.com to get your license key. We try to provide you with a fair price.
 usersprice (euro)
 fromto 
1.1550
2.610100
3.1115150
4.1620200
5.>20 250

Download newest version
Download the newest HTTPLib library here.
This version supports sending of more then 300 bytes in one go.
The 300 byte limit comes from the NSBasic limitation of only allowing the passing of a string of max 300 bytes to a shared library function.
Public releases ...
These releases are the older free version of HTTPLib.
You can still get the new HTTPLib for free for non-commercial use. Please contact Tektonica to ask for a free perpetual license key, stating purpose and use of the application.

HTTPLib-0.1
First public release ...

HTTPLib-0.2
Added a disconnect function.

I added a disconnect function into the library. Now it is possible to disconnect the modem/interface from within your NSBasic program. The HTTPLibTest project shows you how to do this.

HTTPLib-0.3
Added INetLibAvailable().

A new function ( INetLibAvailable ) to check wether the INetLib is available on the Palm has been added. The example project HTTPLibTest has been changed to use this function. Look in the readme for usage.

- Download
Documentation
Buy

Brochure
 usersprice (euro)
 fromto 
1.1550
2.610100
3.1115150
4.1620200
5.>20 250


Free serial:16274730
(expires 1/8/2008)

-

Valid HTML 4.0!