How to send data to url without using web () in MATLAB code?

I need to send data using url to MATLAB. currently i send it like this

str=http://192.168.4.1?vno=AP09BN7886;
web(str);

      

In this it sends data ("AP09BN7886") to IP (192.168.4.1), but opens the browser and also not fast enough. Can you please suggest me another way to send as well as receive data like this in Matlab. I think I can probably use urlread () or urlwrite (), but I don't understand how to use them.

+3


source to share


1 answer


If you prefix your instruction with !

, you can enter the bash command. Can you use cURL for what you want? for example! curl --data "AP09BN7886" http://192.168.4.1



0


source







All Articles