TagUI icon indicating copy to clipboard operation
TagUI copied to clipboard

post Content-Type

Open gitee996 opened this issue 1 year ago • 7 comments

api post set Content-Type: application/x-www-form-urlencoded is invalid just application/json?

gitee996 avatar Mar 22 '23 08:03 gitee996

check https://github.com/aisingapore/TagUI/issues/967

marcelocecin avatar Mar 22 '23 10:03 marcelocecin

检查 #967

thanks. my format is correct。 header:['Content-Type: application/x-www-form-urlencoded'] but it is invalid。 I use an online post tool to test is ok. Tagui Unable to get the correct result

gitee996 avatar Mar 22 '23 11:03 gitee996

can you share more details ?

marcelocecin avatar Mar 22 '23 11:03 marcelocecin

can you share more details ?

ok just Tomorrow. I find it thanks

gitee996 avatar Mar 22 '23 11:03 gitee996

api_config = {method:'POST', header:['Accept: application/json','Content-Type: application/x-www-form-urlencoded'], body:{'TB':'003'}};

api some URL echo api_result

‘Content-Type’ is useless。The website can be accessed,but the result is error i think it's post Content-Type just 'application/json'

gitee996 avatar Mar 23 '23 02:03 gitee996

api_config = {method:'POST', header:['Content-type: application/x-www-form-urlencoded'], body:'orem=ipsum&name=binny'};
api https://webhook.site/your_id_here
echo `api_result`

marcelocecin avatar Mar 23 '23 21:03 marcelocecin

api_config = {method:'POST', header:['Content-type: application/x-www-form-urlencoded'], body:'orem=ipsum&name=binny'};
api https://webhook.site/your_id_here
echo `api_result`

great!!!!! thank you!

gitee996 avatar Mar 24 '23 03:03 gitee996