Getting UDID from IOS device using php

I created and signed a .mobileconfig

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
        <string>Profile Service</string>
        <string>xxx device registration</string>
        <string>Profile Service</string>

The process folder has a simple index.php file

//get data
$data = file_get_contents('php://input');
echo "Received data is ".$data;

When I install the mobileconfig it correctly redirects to my index.php but returns no data.
When I test it with curl curl -X POST -d ‘testing’ it returns correctly “Received data is testing”

I used to have a working system but it no longer works for some unknown reason.
In my old version the url in the .mobileconfig pointed directly to my php script.
Now if I point directly to my “receiving” php file it fails with an error message “A connection to the server could not be established”

Funny thing is that if I set the url in my mobileconfig to it will display the udid

So it should work with a direct link to the php script.

I must be missing something obvious here…


Browser-based ETH vanity address generator with vue.js

a small helper tool to configure functions for Ultimaker S-Line printers