As you can see from above that URL and _base64 are parameters. I really don't know how to control client.print(_base64) such that the Carriage Return would be located at the new line...
As you can see from above that URL and _base64 are parameters. I really don't know how to control client.print(_base64) such that the Carriage Return would be located at the new line...
you should have tell us that this data is part of the http header fields.
based on these line I suspect that the content of _base64 is not correct.
As mentioned already, print it in HEX to serial and compare bytewise what is happening. A full compileable example can lead you to the root cause.
I have ready printed the data using Serial.print(_base64); and it displayed the correct data. Why should I print it in HEX byte by byte? And how should I achieve it?
So now you finally posted your code! Ok, it comes out you're trying to send a base64-encoded auth token over an html request: if the reply is an "unauthorized" error, it means you had something bad with the token you're sending to OpenAPI, so double check the _base64 variable content.
And about Basic Authentication with OpenAPI, carefully read HERE.
PS: for the 3 "extra" characters, I still don't know what are you talking about and where/how you saw that.