Skip to content

Allow request header manipulation for HTTP functionality #619

@RhoSigma-QB64

Description

@RhoSigma-QB64

Is your feature request related to a problem? Please describe.
No, but it would make some things easier.

Describe the solution you'd like
When making HTTP calls to _OPENCLIENT it would be sometimes reqired to specify additional header fields or modify existing fields to request special behavior from the server. However, the current implementation does not allow for that.

Describe alternatives you've considered
The alternative would be to make a regular TCP/IP connection and make the GET request with your own custom headers yourself. However, that only works if the server supports http:// access. If only https:// is allowed, then it gets complicated, as the whole secure stuff had to be done manually somehow.

Additional context
Here's a simple description of what I would expect:
https://curl.se/libcurl/c/httpcustomheader.html

From the QB64 side the header fields could be provided in a string, each field separated by a LF or any other suitable control char. This string is then passed as new optional parameter to the _OPENCLIENT call, which would use it to modify the header as described in the document above before actually making the libcurl request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions