beautypg.com

Grandstream GXP2200 GMI Web Service Guide User Manual

Page 31

background image

GXP2200 GMI WEB SERVICE GUIDE V1.0

Page 30 of 38

• callbackFunction: Call back function

HTTP Request

1. Save configuration
• url: http://" + ip +"/manager?"
• action: "put"
• var-0000: 238 //Key. P238 is for automatic upgrade

val-0000: 0 //P238 Value

var-0001: 212 //Key. P212 is for upgrade method

val-0001: 1 //P212 value

....

var-xxxx

val-xxxx

• format: "json"
• jsoncallback: "?" (This is the HTTP request for the call back function, usually used in

AJAX and JQuery)

• For example:

http://192.168.121.230/manager?action=put&var-0000=238&val-0000=0&var-

0001=212&val-0001=1&format=json&jsoncallback=?

2. Upgrade
• url: http://" + ip +"/manager?"
• action: "upgrade"
• var-0000: 238 //Key. P238 is for automatic upgrade

val-0000: 0 //P238 Value

var-0001: 212 //Key. P212 is for upgrade method

val-0001: 1 //P212 value

....

var-xxxx

val-xxxx

• format: "json"
• jsoncallback: "?" (This is the HTTP request for the call back function, usually used in

AJAX and JQuery)

• For example:

http://192.168.121.230/manager?action=upgrade&var-0000=238&val-0000=0&var-

0001=212&val-0001=1&format=json&jsoncallback=?