I’m using my Yun to curl a page using
Process p;
p.begin("curl");
When I ssh into the radio, I am able to run the specific curl command fine and see the output, but the same is not happening within the arduino sketch. I receive no response from the curl command.
I’m wondering if the extremely long url given as a parameter to the process is causing the problem. Does anyone know if this could be the case? Is there a way to monitor what’s happening in the radio after this command is sent?
Here’s an example of the curl request:
Process p;
p.begin("curl");
p.addParameter("https://spreadsheets.google.com/feeds/cells/1XJpDhasednnjyYekKR5MkiXk62Qi8-vhrGZboEjht40/omtx7hz/private/full/R3C2?access_token=yad9.ywHx2KhG_IZyV46cuplaQN3jdn24fV2PH3m_3wiRw0LnUofTff291F_cSch69tnz");
p.addParameter("-k");
p.run();
while (p.available()>0) {
char c = p.read();
Serial.print(c);
}