xdr

Can IE8 post cross-domain requests from HTTP to HTTPS?

回眸只為那壹抹淺笑 提交于 2020-06-28 06:11:55
问题 I'm trying to make a secure authentication POST request from an HTTP domain to an HTTPS domain using Ajax. For Firefox, Chrome and other modern browsers, it's possible to do this using a CORS request. Unfortunately IE8 and IE9 don't support CORS, which makes this type of authentication difficult. In point 7 of XDomainRequest - Restrictions, Limitations and Workarounds, Eric Law mentions a workaround for IE's limitation on HTTP-to-HTTPS cross-domain requests. However, while the workaround demo

Understanding XDR specification to create a *.x file

会有一股神秘感。 提交于 2019-12-24 02:07:54
问题 I have been looking through several websites on the Internet and actually wanted to know how do we write specification in a .x file to generate equivalent functions in .c file for RPC. Every site I visited suggested to use following kind of specification in *.x file: program ADD_PROG { version ADD_VERS { int ADD(intpair) = 1; } = 1; } = 0x23451111; So, to understand practically, I obtained gm_protocol.x from an open-source project known as ganglia and generated equivalent C source code (gm

Can't Encode Arguments in Remote Procedure Call for Server Registration

雨燕双飞 提交于 2019-12-10 15:44:26
问题 I'm going a bit crazy trying to figure out why this isn't working. I'm using sunrpc, but the generated server code throws the following: Cannot register service: RPC: Can't encode arguments unable to register (MYRPC, MYRPC_V1, udp). I have no idea why this is happening. I'm doing the following to generate the stubs: $ rpcgen -NMC myrpc.x Here's my XDR struct imgdata{ opaque data<>; }; program MYRPC { version MYRPC_V1 { imgdata minify(imgdata) = 1; } = 1; } = 0x30D0D0DFF; I don't get any

How to send JSON data in XDR using the POST method

北城余情 提交于 2019-12-03 13:58:55
问题 I want to send JSON data in XDR using the POST method. I'm able to send JSON data, however the problem is . (DOT) symbols are converted into _ (underscores). Here is the code: if ($.browser.msie && window.XDomainRequest) { var xdr = new XDomainRequest(); xdr.open("POST",Path); xdr.send(JSON.stringify(data) + '&ie=1'); xdr.onerror = function() { alert('in error'); }; xdr.onload = function() { alert(xdr.responseText); } } else { jQuery.ajax({ type: "POST", url: Path, data: JSON.stringify(data),

RPC can't decode arguments for TCP transport

别说谁变了你拦得住时间么 提交于 2019-12-01 21:02:57
问题 I'm working on a multithreaded RPC server based on the example from this page: http://bderzhavets.blogspot.ca/2005/11/multithreaded-rpc-server-in-white-box.html Unfortunately it didn't quite work out of the box, and after chasing the errors for some time, I've found that the server is failing to decode the arguments (based on the return code from squareproc_2 ). The execution on the server side seems to stop after the call to squareproc_2_svc in the function serv_request . See case:

RPC can't decode arguments for TCP transport

人走茶凉 提交于 2019-12-01 19:58:44
I'm working on a multithreaded RPC server based on the example from this page: http://bderzhavets.blogspot.ca/2005/11/multithreaded-rpc-server-in-white-box.html Unfortunately it didn't quite work out of the box, and after chasing the errors for some time, I've found that the server is failing to decode the arguments (based on the return code from squareproc_2 ). The execution on the server side seems to stop after the call to squareproc_2_svc in the function serv_request . See case: SQUAREPROC in the code below from square_svc.c void *serv_request(void *data) { struct thr_data *ptr_data =

Inconsistent ajax (XDR) response from IE

♀尐吖头ヾ 提交于 2019-12-01 02:32:54
问题 I'm making an ajax request from an iframe that is injected onto every page via an IE plugin. I'm using IE's cross domain request because jQuery's ajax fails for IE. This works 75% of the time on IE8 & 9. The other 25%, the xdr.onload doesn't even fire. The server php is doing its job...the log looks identical for when onload does and does not fire. Also, xdr.onerror doesn't fire either. Any ideas? thisURL = "http://example.com/getmsg.php?cmd=getMessage&iid=ddeb2c1228&uurl=http%3A%2F%2Fwww.cnn