…. sieht so aus (aus dem PDF entnommen)
<?php define( 'HOST', 'https://gateway.autodns.com' ); define( 'XML_FILE', 'request.xml' ); $xml = implode( "", file(XML_FILE) ); header( 'Content-Type: text/xml' ); echo requestCurl( $xml ); function requestCurl( $data ) { $ch = curl_init( HOST ); curl_setopt ( $ch, CURLOPT_POSTFIELDS, $data ); curl_setopt ( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt ( $ch, CURLOPT_SSL_VERIFYPEER, FALSE ); if( !$data = curl_exec( $ch )) { echo 'Curl execution error.', curl_error( $ch ) ."\n"; return FALSE; } curl_close( $ch ); return $data; } ?>
Das XML sieht so aus:
<?xml version="1.0" encoding="utf-8"?> <request> <auth> <user>yyyyyyyyyy</user> <password>xxxxxxxxx</password> <context></context> </auth> <task> <code>0501</code> <redirect> <type>domain</type> <mode>http</mode> <source>www.source-example.com</source> <target>www.target-example.com</target> </redirect> </task>
Die Login Daten sind korrekt, warum bekomme ich dies zurück?
response><result><msg><text>User does not exist or password incorrect.</text><code>EF00202</code><type>error</type><object><type>string</type><value>1105426</value></object></msg><status><code>E00000</code><text>Errors occurred during processing.</text><type>error</type></status></result><stid>20160823-app2-82691</stid></response>