Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way to edit headers for HTTP requests? #12

Open
Tylersuard opened this issue Apr 13, 2021 · 1 comment
Open

A way to edit headers for HTTP requests? #12

Tylersuard opened this issue Apr 13, 2021 · 1 comment

Comments

@Tylersuard
Copy link

Hello, thank you for making this code. It is the only thing I've found to work on the TTGO T-call.
Is there a way to edit headers for the http requests using the modem.request method? I need to add a key to my API call.
Thank you!

@sarusso
Copy link
Collaborator

sarusso commented Apr 27, 2021

There is a way but requires some work. You have to edit the code to support the (Sicom proprietary) AT+SHAHEAD command. Something like it is done here (in this case to add support for setting APN username and password): #9 (comment)

See here for more info about the AT+SHAHEAD command: https://m2msupport.net/m2msupport/atshahead-set-up-http-headers-in-the-simcom-modules/

Disclaimer: haven't tried it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants