Will be possible to integrate fldigi as modem, too. It needs someĭialog windows, comfort and polishing and than it will be ready for Will be able to continue with my Chrome app afterwards. This week and the next week I am quite busy at work plus have someĬonstruction works at home, so I won't be able to continue. Permissions specified in its manifest file. Same page make XML-RPC call to I believeĪpp this problem should disappear, because chrome app can have special The proxy was necessary becauseīrowser cannot load the HTML page from and I used lighttpd as reverse proxy and tested communicationīetween the browser and fldigi. This is a problem that we had in the past but I could not fix theīug which was in third-pary library. So, if changes or bug fixes areįor example, the problem you had might be related to cross-site For your information, the xml-rpc code in fldigi has been Maybe next week I will have some time to test more.Īh cool. Is, however, that there is absolutely no hint of any error. More strangely, it hangs both in FirefoxĪnd Chrome, as if they used the same code. When I tried page originated from localhost:80 making XmlHttpRequest Has been described many times as symptom of cross-domain request Localhost:7362), this call returns immediately with status = 0. "pure" cross-domain (html origin is file:// URL, calling Symptoms are very difficult to analyse (at least for me). Yes, I guess my problem was cross-domain request, although the Use nn embedded http server like gnu microhttpd ?" Under windows with flrig that the multi-threaded server solved ? Maybe Means the new server will be single-threaded (one request at a time).Īre we going to have the same "too many sockets in TIME_WAIT" problem XmlRpcSocket class is hardcoded to INADDR_ANY, and so will listen to all * Teach XmlRpcServer how to bind to a specific IP address. PS: By the way, I found some technical notes made by other Fldigi The function main.get_frequency does not get any parameter and returns aįloating-point number: This is an easy way to check if the server works. RetValue2 = helloWorld.call("main.get_frequency","xxxx", f) The port numberħ362 is the one of my server (Default port of fldigi): Then I embedded the following program in a HTML page. There are other libraries allowing to call a XML-RPC server from As a XML-RPC library, Iįirst downloaded the file all_javascript.js from I needed a javascript program to test this. Parsing, when we receive a header of the form: This is a matter of pre-parsing a HTTP request before doing the XML It might be simpler toĪccess-Control-Allow-Methods: PUT, DELETE| Validated by the user agent." In short, not only the pre-flight but all Requests, using a non-simple method, from a given origin. Preflight request whether a cross-origin resource is prepared to accept The user agent validates that the value and origin The request originated from as the value, to allow access to the Include an Access-Control-Allow-Origin header, with the origin of where Library: It is just a matter of replying with a specific header if theĬlient sends an authentication request (Beware that: "A response can If this is the same problem, we will have to do the same fix for our Question: Do you have the same problem ? You can check that, for exampleīy examining the content of socket messages with tcpdump (Linux) or Server proxying (But this requires server-side development): Some other explanations here, explaining the alternate solution of This resulted in a fix in the xmlrpc_c api, more explanations: Origin header or the literal string "*" as value." Single Access-Control-Allow-Origin header, with either the value of the It should in fact have returned a message whose header contains " a In other words, javascript for a cross-site request sends first this To another machine without specific authorizations. Is a security stuff which prevents a web site to make a javascript query I noticed that it was not possible to use xml-rpc interface with fldigiīecause the xml-rpc api we used did not support the tag Allow-Origin: It ( Now we use our own on which we haveĬomplete control, so fixes will be simpler ). I had to sort out the same problem of cross-site request with xlmrpc_c, Very technical notes about xml-rpc, which might bring the right
0 Comments
Leave a Reply. |