The openSRS_base.inc has an array:
 var $OPENSRS_ACTIONS = array (
        'get_domain'        => true,
        'get_userinfo'        => true,
        'modify_domain'        => true,
        'register_domain'    => true,
      <SNIP>

The GET_PRICE command is not in this list of valid commands (assumedly
because it s a newer command). This causes the openSRS_base class to think
the command is invalid and tell you such without passing the command to the
server. Adding a "'get_price_domain' => true" line into the array should
allow to the command to be sent to the server so you can get the servers
response.

HTH,

Dave

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Emmanuel Halphen
Sent: Saturday, June 09, 2001 12:07 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Get_price function


Hello,

I'm using the PHP client of OpenSRS.

I have made a script in order to get the price of a .tv domain name. But my
script doesn't work. This is the query and the response.

Does somebody has an idea of what the problem can be ?

Thanks a lot.

Emmanuel

## QUERY ##

Array
(
    [action] => get_price
    [object] => domain
    [attributes] => Array
        (
            [domain] => netsample.tv
            [period] => 1
        )

)

## RESPONSE ##

Array
(
    [is_success] =>
    [response_code] => 400
    [response_text] => Invalid command: get_price domain
)

Reply via email to