0
我有一個external_api
實現,我目前可以達到標準的方式;HTTP重定向表單external_api?
http://localhost/webservice/rest/server.php?wstoken=foo&wsfunction=local_test_function&moodlewsrestformat=json
,並返回:
https://google.com/?q=test
我想不通的是事情,我怎樣才能使這個返回一個HTTP/302?我試圖解決這個事實,即atto不會運行JS代碼,我想我可以做一個iFrame,它的src設置爲我的web服務,但我所能做的只是返回一個字符串。