internet explorer - OData.read not working in IE (missing headers, no data) - works in Firefox -


i have sap gateway system create odata services consume in jquery html5 page.

when doing html page, used firefox run it. want users test application , sap automatically uses ie (i have ie 10 installed).

the exact same request, send through odata.read function (datajs library), not give me results in ie in firefox does. reach success callback function there no result. that's anyhow 1 of services. service call simunltaneously give me results firefox does. strange thing in success callback function header (object) in ie empty when debugging ie have response header.

the way tested using eclipse , localhost. firefox works, ie doesn't.

i have no idea how fix , appreciate help!

my request js:

var request = {     headers: {         'dataserviceversion': '2.0',         'x-csrf-token': 'fetch' // needed update requests     },     recognizedates: true,     enablejsonpcallback: true,  // didn't have firefox, added ie didn't     requesturi: requesturl      // url definatelly correct , works in 2nd request }; odata.read(request, successcallback, displayerror); 

request headers according firefox:

accept             application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;q=0.5, */*;q=0.1 accept-encoding        gzip, deflate accept-language        en-gb,en;q=0.5 cookie             sap_sessionid_ied_200=fhwa0fh1iho_b_upfmrojmizprjdxhhjtxgaufa_cwe%3d; sap-usercontext=sap-client=200 dataserviceversion     2.0 host               localhost:51407 maxdataserviceversion  3.0 referer            http://localhost:51407/tool/index.html user-agent             mozilla/5.0 (windows nt 6.1; wow64; rv:28.0) gecko/20100101 firefox/28.0 x-csrf-token       fetch sap-client             200 

request header according ie

accept                  application/atomsvc+xml;q=0.8, application/json;odata=fullmetadata;q=0.7, application/json;q=0.5, */*;q=0.1 dataserviceversion  2.0 x-csrf-token            fetch sap-client          200 maxdataserviceversion   3.0 referer                 http://localhost:51407/tool/index.html accept-language         sv-se accept-encoding         gzip, deflate user-agent          mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0) host                    localhost:51407 dnt                 1 connection          keep-alive cookie                  sap-usercontext=sap-client=200; sap_sessionid_ied_200=jrjj5t5qqs7_mtj01oyqjx3ckhbdxxhjtxgaufa_cwe%3d 

response header in ie debugger:

content-type                 application/json; charset=utf-8 content-length               20 response                 http/1.1 200 ok server                       jetty(8.1.3.v20120522) server                       sap netweaver application server / abap 731 sap-metadata-last-modified   sun, 13 apr 2014 12:02:23 gmt dataserviceversion       2.0 x-csrf-token                 yc7gwocfwejbnqhvyp-xxx== 

but object empty:

js

executeread(url, function (resdata, response) {   // trying x-csrf-token whole response.header empty   ccsrf = response.headers['x-csrf-token'];   ... } 

response object

{  [prototype] : {...}, body : "{"d":{"results":[]}}", data : {...}, headers : [], requesturi : "proxy/sap/opu/odata/sap/service/entityset?$filter=field eq true", statuscode : 200, statustext : "ok" } 


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -