Hi i dont find any related info about this, my question is simple, is there any way
Plugin
Code (Java ,C)
etc
to make a cURL call in an apache cordova app to a custom web service, i know it sound weird but the thing is we have a service from a partner office and they didnt want/know to configure the CORS so i need to make a subservice that call they service via cURL and the send the data to the device, and seems like a lot i want to know if theres any way to achieve that in cordova, i know it cant be done in pure JS but maybe a guide or something to acomplish my goal with java or c will help, regards
Use the following process to setup a proxy service to make the call indirectly:
Use java.net.URL to map the URL
Use java.net.URLConnection to make the connection
Use java.net.Proxy to make a proxy connection
Use the CLI in conjunction with node.js and the ex-curl module for a platform agnostic solution.
References
Networking with Android
Cordova Guide: The Command Line Interface (CLI)
Related
I have a GRPC service running written in Python. I have the python support proto file for the same.
I want to integrate this backend with AngularJS+Typescript UI.
Questions are:
Is it possible?
Do I have to change anything in the Python grpc server end?
I checked online and it seems Envoy help in doing similar thing, is Envoy the only solution? As I tried a lot and its not working.
What all changes are required.
Yes, gRPC support javascript, you don't need to modify the server, just use service proto generate client javascript files, and use typescript call the function. You need add the grpc-web to your client project. Envoy is not necessary for request server.
Yes, you can integrate gRPC API's with angular(typescript).
follow here it will helpful.
I want view if someone try to inject xss,sql to my apache2 server, My idea is create a waf in nodejs and if the connection is secure, redirect to apache2. It is posible?
Yes, it's certainly possible, but avoid the term "redirect" here. What you really want is to a reverse proxy. There's no shortage of basic examples of a node.js reverse proxy -- you'll just need to add whatever WAF checks prior to proxying.
I have a client/server app running on NodeJS with an AngularJS frontend. I want to use the built in debugging features of Webstorm, but it just won't work.
Imagine following scenario:
I have a webstorm project with a client folder and a server folder. I can start the debuggers for the client and the server, and it works. But both sessions are on different ports. So an AJAX request to the server inside the client doesn't work without using CORS and telling AngularJS to use a different server address.
In the production version the client will be published under the server, but for developing there is no need to do this.
Does anyone know how achieve this? Something like: The system should behave like one server, under one URL.
Or is my approach stupid?
Best regards,
Kersten
Is it possible to get the server load information of a webserver deployed on a ServiceMix / Fuse ESB.
I dont want to use Jconsole but get the information by running a java file and writing the values into text file.
Could someone point me to some code that I can run on my machine?
Cheers,
Kunal
You can also intall jolokia i ServiceMix which exposes a REST interface over JMX. This makes it much easier for non Java developers and programming languages to access the metrics. It's just a HTTP call to get the data.
http://www.jolokia.org/
We use this library for the http://hawt.io management console so we can get the data easily from a moderne HTML5 web console.
I won't write the code you ask for, but..
Everything in JConsole is accessed through JMX. And everything in JMX is accessible via code as well (basic tutorial here).
So just locate the value/values you are intressted in using JConsole, then just extract them using the JMX api in code.
I've been looking for the best way to build a search web/ios/android application with user login and a REST Webservice. I have landed on CakePHP for the Website creation and REST api handling.
I would also use the RestKit API for iOS, and not sure for what RestAPI I'd use for Android.
I also want to be able to use OAuth-2.0 for communicating with Twitter/Facebook/Pinterest.
My Question:
Is there a way to use CakePHP and Parse.com together to handle all the user authentication, and would I need to separate data tables (one on parse.com and the other on another hosting service with CakePHP)?
I would like to keep everything at Parse.com if I could. Any help would be awesome!
I'm not familiar with CakePHP, but if you can completely ignore whatever DB/ORM comes with it by default, you can use Parse on your server and in client apps. There's an un-official PHP library you can use for the server, and they offer iOS and Android SDKs.