AnsweredAssumed Answered

SSL and esri/request

Question asked by drc_ on Jul 22, 2015
Latest reply on Aug 4, 2015 by drc_

I haven't been able to find anything online to indicate how esri/request should work via https. Should this work? I'm using js api v3.13.

 

require[(
     "esri/request", ...
], function(request, ...) {

     var printInfo = new request({
          url: "https://my.server.url:6443/arcgis/rest/services/Geoprocess/ExportWebMap/GPServer/Export%20Web%20Map",
          //url: "http://my.server.url:6080/arcgis/rest/services/Geoprocess/ExportWebMap/GPServer/Export%20Web%20Map",
          content: {"f":"json"}
     });
     printInfo.then(
          function(response){
               console.log("Response: ");
               console.dir(response);
     }, function(error){
          console.dir(error);
     });

 

When I use the https url to my print task the esri/request response object is null but when I use the http endpoint I get a response like I would expect. I never get an error via https, just a null response. Do I have to handle https differently?

 

I've tested this with print services on two internal (i.e. corporate intranet) servers and get the same result. Servers are at AGS v10.1. One server has a self-signed certificate (this is on Windows), the other has a certificate authorized by our CA (this is on Linux). I've tried this via proxy and directly (via CORS) and results are the same. I've tried accessing my application via https and http and results are the same.

 

Any tips or suggestions Kelly Hutchins?

Outcomes