HOME  - -  Lazarus/ Delphi tutorials

A demo: using HTTP to fetch stuff from internet or LAN

(Page's URL: ldn148.htm)

This is one of my tutorials where (so far) most of the goodness is in the sourcecode.

Alternatively, you can open the .pas file with a text editor to see the code and the supporting comments....

OR!... if that doesn't appeal, you can double-click on the .exe file, to see the demo on action... but be advised, that doesn't do anything clever. It is just a simple demo of fetching stuff using HTTP.

Umm. Ah.

I wrote a BETTER "tutorial" app on this subject. It was "neat" and "tidy". (And limited.)

You can download it.. (That gives you the whole Lazarus project. Assuming you have the Lazarus IDE installed, just unzip the download, dbl click in the .lpi file.)

But then I pressed ahead and wrote an app for my own use. It is messy. It has frills. There are even a few areas of concern! That's the subject of this page. I'll give you the link for the .zip with project (the sourcecode, etc) and a copy of the .exe it makes in a moment.

First, in the spirit of full disclosure: you also need the FREE "Synapse". To compile either of the apps. PLEASE don't let that put you off. The Synapse "install" is really REALLY easy, and "non invasive". (You put a few files where YOU want them, and tell the Lazarus IDE where they are for when needed. No mumbo jumbo by "fancy" installers who do who knows what to your system. You only need the Synapse stuff to compile code. The finished .exe is stand-alone.

Guess what?! I have another page for you!.... How to "install" Synapse. (It aso tells you more about why I like it.)

I wrote the fancier-but-imperfect version BEFORE writing this web page for the "tutorial" version. Sorry.

For now all I have time to post is the code of the two versions. (You've had the link to the fancy one above.)

But hey! It's free! No one is forcing you to look at them!

Click HERE to download the "simple" version.. (That's another .zip with the whole Lazarus project. Assuming you have the Lazarus IDE and Synapse installed, just unzip the download, dbl click in the .lpi file.)

Sorry this support material is "rushed". The sourcecode was taken to a much higher level. (If I got a little more feedback on these pages, maybe I'd find more time for making them "tidier" and more complete! (Whine, whine.))

A few words from the sponsors...

Please get in touch if you discover flaws in this page. Please mention the page's URL. (wywtk.com/lut/ldn148httpfetch/ldn148.htm).

If you found this of interest, please mention in forums, give it a Facebook "like", Google "Plus", or whatever. If you want more of this stuff, help!? There's not much point in me writing these things, if no one feels they are of any use.



index sitemap
What's New at the Site Advanced search
Search tool (free) provided by FreeFind... whom I've used since 2002. Happy with it, obviously!

Unlike the clever Google search engine, this one merely looks for the words you type, so....
*    Spell them properly.
*    Don't bother with "How do I get rich?" That will merely return pages with "how", "do", "I"....

Please also note that I have three other sites, and that this search will not include them. They have their own search buttons.

My SheepdogSoftware.co.uk site, where you'll find my main homepage. It has links for other areas, such as education, programming, investing.

My SheepdogGuides.com site.

My site at Arunet.




How to email or write this page's editor, Tom Boyd. Please cite page's URL, ldn148.htm, if you write.


Test for valid HTML

Page has been tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org. It passes in some important ways, but still needs work to fully meet HTML 5 expectations. (If your browser hides your history, you may have to put the page's URL into the validator by hand. Check what page the validator looked at before becoming alarmed by a "not found" or "wrong doctype".)

AND passes... Test for valid CSS


Why does this page cause a script to run? Because of the Google panels, and the code for the search button. Also, I have my web-traffic monitored for me by eXTReMe tracker. They offer a free tracker. If you want to try one, check out their site. Why do I mention the script? Be sure you know all you need to about spyware.

....... P a g e . . . E n d s .....