MATLAB R2019b has problems with HTTP POST requests
2 次查看(过去 30 天)
显示 更早的评论
This problem is encountered when communicating with a web server on an Arduino card
Here are some initializing parameters:
url='http://192.168.1.23';
data=struct('recalage','activé','x',0.55);
a=jsonencode(data);
then , with R2019a : webwrite(url,urlencode(a)) returns a correct answer
'<!DOCTYPE HTML>
<head>
<meta charset="utf-8">
</head>
<html>
Arguments GET ou POST: {"recalage":"activé","x":0.55}
Arguments décodés: recalage=activé ,x=0.5500
</html>
'
while, with R2019b, the answer with the same board is:
<!DOCTYPE HTML>
<head>
<meta charset="utf-8">
</head>
<html>
Arguments GET ou POST: ���������������������������������������������������������
</html>
'
the reason is that the function client.read() on arduino returns no data when reading the POST data when the request is coming grom R2019b
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!