title: What is the best way to transfer data from database using curl
body: <p>I have been reading a lot about php CURL and I still couldn't grasp the mechanism of it sending data, it seems that it is not possible to send php array or php object straight away from a database using curl, but it seems to be possible to send the data using JSON as curl return the data as strings, but I have read somewhere that it is possible to make the php array or object as a post data and send it through curl (kinda like ajax I guess). However I have not found the clean and proper tutorial or examples regarding this. </p>
  
  <p>I hope that anyone that has enough knowledge about curl would share an example on how to properly send data, say from from mysql database using curl as an array / object / JSON. Hope it can be useful for anyone looking for ways to send data cross-domain using curl in the future.</p>
  
  <p>Thank you in advance.</p>