<mx:HTTPService id="gpService" fault="gpService_faultHandler(event)" method="POST" result="onJSONLoad(event)" resultFormat="text"/>
The tasks automatically switch to using a POST when a token is present. Can you use a tool like HttpFox to verify whether the requests are using POST or GET?
Firefox doesn't send the referer header unless it's sending a POST request. Is you're token secured by referer or IP?
https://maps.tnc.org/ecadpubprodanon/rest/services/testextract_auth/GPServer/Extract Data Task?token=J7xH0dk8hRXP5Bq_YQevwSX7P92kPPLK25IE0dxYDIYp6SFZFJC6lJfTkgDLDrPDorpDog7ohIUV-rLV4QfnFg..
if (useProxy && configData.proxyUrl) { gpService.url = configData.proxyUrl + "?" + gpURL + "?f=json"; gp.proxyURL = configData.proxyUrl; } else { gpService.url = gpURL + "?f=json"; }
if (useProxy && configData.proxyUrl) { gpService.url = configData.proxyUrl + "?" + gpURL; gp.proxyURL = configData.proxyUrl; } gpService.url = gpURL;
gpService.url = gpURL; if (gpURL.indexOf("?") != -1){ if (gpURL.indexOf("f=json") == -1) { gpService.url = gpService.url + "&f=json" } }else { gpService.url = gpService.url + "?f=json" } if (useProxy && configData.proxyUrl) { gpService.url = configData.proxyUrl + "?" + gpURL; gp.proxyURL = configData.proxyUrl; }
Could you capture REST Request/response using firebug/fiddler etc. to see whats going on?
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.