I am developing a program by leveraging the text-to-speech cognitive services on the framework of wechat that we call Miniprogram.
here is my problem: my http request to the cognitive-services can't define my own user-agent, the framework(Miniprogram) will define it automatically, this is how my user-agent looks like:
User-Agent: Mozilla/5.0 (Linux; Android 12; 2206122SC Build/SKQ1.220303.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/86.0.4240.99 XWEB/4343 MMWEBSDK/20221011 Mobile Safari/537.36 MMWEBID/5638 MicroMessenger/8.0.30.2260(0x28001E3B) WeChat/arm64 Weixin NetType/WIFI Language/en ABI/arm64 MiniProgramEnv/android
And i got 400 because it's value over 255 characters.
The pain is I can't get around this user-agent problem.
Any suggestion?