need help

i am doing one project where i used http post command for lights on & off but i am not able to get status of light can anybody know how to set it?