Foscam sleep wake command state

Hi all,

Not the most advanced user here but i am trying to get the command state in my foscam c2m.
this is the command for retrieving the state:
http://xxx.xxx.x.xx:xx/cgi-bin/CGIProxy.fcgicmd=getAlexaState&usr=xxxxx&pwd=xxxxx

the result is this:
CGI_Result
result>0</result
state>2</state
/CGI_Result

and the command result for sleep is:

CGI_Result
result>0</result
state>1</state
/CGI_Result

the result for wakeup is:

CGI_Result
result>0</result
state>2</state
/CGI_Result

Hope somebody can help me out what to enter to make it work