aisingapore / TagUI

Free RPA tool by AI Singapore
Apache License 2.0
5.45k stars 572 forks source link

post Content-Type #1338

Open gitee996 opened 1 year ago

gitee996 commented 1 year ago

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

marcelocecin commented 1 year ago

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

gitee996 commented 1 year ago

检查 #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

marcelocecin commented 1 year ago

can you share more details ?

gitee996 commented 1 year ago

can you share more details ?

ok just Tomorrow. I find it thanks

gitee996 commented 1 year ago

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'

marcelocecin commented 1 year ago
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`

gitee996 commented 1 year ago
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!