https://github.com/setghm/PascalWeb
HTTP and HTTPS client library for FreePascal in a single unit
https://github.com/setghm/PascalWeb
freepascal freepascal-library http-client portable-library
Last synced: 8 months ago
JSON representation
HTTP and HTTPS client library for FreePascal in a single unit
- Host: GitHub
- URL: https://github.com/setghm/PascalWeb
- Owner: setghm
- Created: 2024-06-11T04:47:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-20T01:41:37.000Z (9 months ago)
- Last Synced: 2025-04-20T02:37:21.797Z (9 months ago)
- Topics: freepascal, freepascal-library, http-client, portable-library
- Language: Pascal
- Homepage:
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Small library for sending and receiving HTTP messages for Free Pascal.
Features:
- Does not raise exceptions on 40x and 50x status codes, so you can read the response content
- Only uses portable built-in FreePascal units
- Compiles to a single unit
- Support for HTTP and HTTPS
## How to integrate
To start using the library, you can simply copy the contents of the `src/` directory into your project source code and start using the unit (see `/examples`).
Or you can compile the unit first and copy the generated `PascalWeb.o` and `PascalWeb.ppu` files into your unit path.
I wrote the library using only `.inc` files and a `.pp` file to avoid setting up a package manager.
The `Makefile` is used for automate tasks only.
> [!NOTE]
> Since this library makes use of the OpenSSL unit provided by FPC, you will need to download the OpenSSL 1.0.2 binaries and place them in your project build directory.
>
> You can find those binaries in [the IndySockets git repository](https://github.com/IndySockets/OpenSSL-Binaries).