bogkonstantin / android_income_sms_gateway_webhook

Simple Android incoming SMS to URL forwarder
MIT License
388 stars 109 forks source link

http basic auth #64

Closed terminaldweller closed 8 months ago

terminaldweller commented 8 months ago

I'm having trouble forwarding SMS using http basic auth.

curl -X 'POST' 'https://user:password@sms.terminaldweller.com/sms' -H 'content-type: application/json; charset=utf-8' -d $'{"from":"1234567890","text":"hey you", "sentStamp": 13245}

Without the basic auth, the endpoint is functional. Im not sure how to enable debug on the app side to see more info on whats going wrong. Also, that curl command executes find on the cli.

terminaldweller commented 8 months ago

using the authorization header instead of using user:pass in the url works.