IAMTubby
February 17th, 2014, 08:50 PM
Hello,
I have to POST some data. I tried opening the URL in a browser by running the following command. Though it works, I would like a better method. Please find the link I'm using to POST data below.
chromium-browser http://54.213.213.32:8080/gprmc/Data?acct=test01&dev=test01&gprmc=$GPRMC,192417,A,2619.001183,N,05013.21068,E, 0000,000.0,170214,,*7
After some googling, I found out about curl. But I'm not sure how to use it to POST data. I tried the following, but didn't work.
curl --data "acct=test01&dev=test01&gprmc=$GPRMC,192417,A,2619.001183,N,05013.21068,E, 0000,000.0,170214,,*7" http://54.213.213.32:8080/gprmc/Data?
Please tell me how I can POST this data.
Thanks.
I have to POST some data. I tried opening the URL in a browser by running the following command. Though it works, I would like a better method. Please find the link I'm using to POST data below.
chromium-browser http://54.213.213.32:8080/gprmc/Data?acct=test01&dev=test01&gprmc=$GPRMC,192417,A,2619.001183,N,05013.21068,E, 0000,000.0,170214,,*7
After some googling, I found out about curl. But I'm not sure how to use it to POST data. I tried the following, but didn't work.
curl --data "acct=test01&dev=test01&gprmc=$GPRMC,192417,A,2619.001183,N,05013.21068,E, 0000,000.0,170214,,*7" http://54.213.213.32:8080/gprmc/Data?
Please tell me how I can POST this data.
Thanks.