Http Post request code for arduino YUN

Hello everyone.I want to get http request from API and post http request to particular API.My question is that i am getting http get request successfully as per given example but i can post request. So please help me to post data to API using Arduino YUN.Important notice is that here i am not using ethernet module.I am just using inbuilt Wi-Fi of YUN.Thanks in advance.

chandramauli_raval:
::::SNIP::::
My question is that i am getting http get request successfully as per given example but i can post request.
::::SNIP::::

chandramauli_raval,

To do an HTTP POST request, you'll need to use the Bridge Library - which it appears you already have.

If someone else has a better way, they will post it.

Let us know, if you need more help
Jesse

Thanks jessemonroy650.I got this things and finally i did it.Here is how i did

  Process p;
  String cmd = "curl --data \"";
  cmd = cmd + Data;
  cmd = cmd + "\" "+ApiUrl;
  p.runShellCommand(cmd);
  Console.println(cmd);
  while (p.running()); 
  while (p.available()) 
  {
    result = p.readString(); 
  }
  p.close();

Now i am very much confused how to use push buttons as well as API in single code to operate things together.Please anyone can help me about external interrupts in Arduino YUN or any other best way to do both things together. :o Thanks

chandramauli_raval:
Now i am very much confused how to use push buttons as well as API in single code to operate things together.Please anyone can help me about external interrupts in Arduino YUN or any other best way to do both things together. :o Thanks

chandramauli_raval,
can you pre-pend [SOLVED] to your first message of this thread?
And can you post your current question to a new thread for this new problem?

Also, it appears you did NOT use HTTP POST, as you would need to use a -X option with CURL.

TIA
Jesse