TNT API PHP Function
Budget: $10 – $30 AUD
I need a straightforward PHP function that will:
• Take my pre-built XMLRequest string (I already have a reference/example).
• URL-encode it and send it via HTTP POST with Content-Type = application/x-www-form-urlencoded to:
https://uat.tntexpress.com.au/Rttnet/inputRequest.aspx
• Return the raw server response in XML—no parsing, no extra error handling.
Please keep the code compact and clear. A short usage snippet showing how to call the function and echo the response will be enough.
• Take my pre-built XMLRequest string (I already have a reference/example).
• URL-encode it and send it via HTTP POST with Content-Type = application/x-www-form-urlencoded to:
https://uat.tntexpress.com.au/Rttnet/inputRequest.aspx
• Return the raw server response in XML—no parsing, no extra error handling.
Please keep the code compact and clear. A short usage snippet showing how to call the function and echo the response will be enough.