Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks for this Chris. I had high hopes for your solution, as it's a good idea, but unfortunately couldn't get it to work. Even doing a simple post and echoing file_get_contents('php://input') was returning no data. The best I could do was echoing a print_r($_POST,1). I even tried setting always_populate_raw_post_data in my php.ini (not forgetting to restart Apache) and doing a print_r($HTTP_RAW_POST_DATA,1) but no joy there either.
      singulars
    2. COI tested it myself now, and while it does work fine with php://input when submitting regular x-www-form-urlencoded data via post, with multipart/form-data, nothing comes out via php://input or php://stdin. Yeah, I wish I knew what to do about that except to say that I doubt you really want to see the base64 encoded data for your image file anyway, so I still recommend my original solution and just submit all the fields except the uploaded files, and with curl, that should automatically leave out multipart/form-data so you can see everything else properly submitted.
      singulars
    3. COOh, my apologies, you need to turn $post into a string, the associative array form is always sent as multipart/form-data with cURL in PHP (http://www.php.net/manual/en/function.curl-setopt.php @ CURLOPT_POSTFIELDS), so use this instead: `CURLOPT_POSTFIELDS => http_build_query($post)` and that will send the data, minus the base64'd data of the binary files (images) you are transferring.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload