Modify Forwarder API

RayManZ

Verified User
Joined
Nov 8, 2004
Messages
90
Hi,

I got a problem with modifying a forwarder with the API.

If i want to change the destination emailadress it doesnt update. But the API reports: [error] => 0 [text] => Forwarder updated

But nothing happens. Deleting, listing & creating is working perfect but modifying not.

I cant find a problem with my code so it has to be a bug.
 
Hello,

Run DA in debug mode with the grep for "string" as mentioned in the API debug section:
http://help.directadmin.com/item.php?id=293

Run the command you want first with your browser normally, then again with your API script. Check for differences.

If it works fine with the browser, then it's usually something with the script, passing the data differently than the browser is.

Note that DA uses the same parsing code for both CMD_* and CMD_API_* functions. If the data passed is the same, then it should function the same. The only difference is the output for the CMD_API_* calls is more easily parseable.

Let us know if the code is exactly the same but you're not getting the results you're expecting.

John
 
Problem solved. Made a mistake in my HTML form. user wasn't posted. Works perfect now.
 
Back
Top