mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-07 15:20:18 +00:00
Modifies libqb.cpp to add support for opening HTTP connections via _OPENCLIENT(). This makes use of the libqb_http API in ./libqb, which is backed by libcurl. This also includes a bit of refactoring for some of the code that required additions. I replaced a few of the integer values with enums, and added a new entry for Http and then implemented it in all the necessary locations. In addition to `_OPENCLIENT()`, there is also support for using HTTP connections with `EOF()`, `LOF()`, `GET #` (variable and fixed length), and `CLOSE`. I additionally fixed an issue of parsing the colon parts of the `_OPENCLIENT()` parameter, where having too many colons would cause the program to crash. Since we only allow so many parts to begin with it I simply limited the max number of parts it will split to 10. Fixes: #98 Fixes: #46 |
||
---|---|---|
.. | ||
c | ||
source | ||
support | ||
temp | ||
clean.bat | ||
version.txt |