How to process Basic Authentication request from Website SIM800L [Solved]

Dear Ladies and Gentlemen,

I have the following problem. I’m not sure how to overcome this issue with the SIM800. I simply want to use

AT+HTTPACTION=0

on an url, which containts different placeholders for different variables. Beforehand though, I have to input the username and password to do that.

I guess I have to use

AT+HTTPPARA=“USERDATA”

to overcome the issue, after checking the datasheet of the module, but I’m not sure how the password and the username have to be formatted. Did anybody solve this issue before?

I’ve found the solution.

AT+HTTPPARA=“USERDATA”,“Authorization: Basic Username:Password”

The string “Username:Password” has to be encoded in Base64.

2 Likes