action should be "renew" not "sw_register:

-mark

On Fri, 20 Jul 2001, Peter Gradwell wrote:

> 
> Hi,
> 
> I'm trying to send OpenSRS an XCP packet which will extend the length
> of registration of my domain name (gradwell.com) by one year.
> 
> - I'm sending this:
> 
> Array
> (
>      [action] => sw_register
>      [object] => domain
>      [attributes] => Array
>          (
>              [domain] => gradwell.com
>              [reg_type] => renewal
>              [encoding_type] =>
>              [reg_username] => pjg7
>              [reg_password] => no-this-isnt-my-password
>              [period] => 1
>              [custom_nameservers] => 1
>              [custom_techcontact] => 1
>              [reg_domain] => gradwell.com
>         [link_domains] => 1
>       )
>      [registrant_ip] =>
>      [protocol] => XCP
> )
> 
> - I'm receiving this:
> 
> Array
> (
>      [is_success] => 0
>      [protocol] => XCP
>      [_OPS_msg_type] => standard
>      [object] => SW_REGISTER
>      [_OPS_msg_id] => 253.272824514463
>      [response_text] => Invalid registration type: renewal
>      [response_code] => 465
>      [action] => REPLY
>      [_OPS_version] => 0.9
> )
> 
> - According to the OpenSRS client_protocol_spec24 document, the
> possible values for reg_type are
> 
>       new
>       transfer
>       renewal
> 
> - So I think my action is valid, but obviously not.
> 
> - Does anyone have any idea why my XCP packet is being rejected?
> 
> thanks
> peter
> 
> 

-- 
mark jeftovic
http://www.easydns.com
http://mark.jeftovic.net

Reply via email to