Comments (17)
Merged latest 1.1.0 with postJson() here.
To use directly in your project:
cordova plugin add https://github.com/Switch168/cordova-HTTP#110
from cordova-http.
@ashleybrener I think not. In the end, I switched to a server with a valid SSL and just use the standard pinning in newer iOS, and dropped this plugin. I only really needed it for testing against self-signed certs. Weird that this has been open >1 year, so I'm wondering whether support on this plugin is selective.
from cordova-http.
I second this, also having this issue.
from cordova-http.
I've submitted a PR for this: Add method: postJson #50
from cordova-http.
@brendonparker Seems your pull request is not merged. How can I use this method? can I install the plugin from your own fork?
from cordova-http.
Yes, just point at my fork. That's what I am doing :)
from cordova-http.
@brendonparker I know it's not a good place to ask, but I'm stuck with this. I used your fork but it doesn't send body of request and I can't get request.body
in my Api. do you have any hints how to solve this issue?
from cordova-http.
should be as simple as
cordovaHTTP.postJson(url, data, headers, successCallback, failCallback);
Where data is a json object
from cordova-http.
When will this be merged ?
from cordova-http.
Does this plugin still not support JSON payloads?
from cordova-http.
My fork does. If I recall correctly, it serializes the json object
natively, so the argument is a plain old JavaScript object, not a
stringify'd one.
On Wed, Apr 13, 2016 at 10:17 PM Aaron Lee [email protected] wrote:
Does this plugin still not support JSON payloads?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#43 (comment)
from cordova-http.
I noticed your fork was out of date so I ported it based on 1.0.2. Thanks @brendonparker
from cordova-http.
I've now merged in the latest.
from cordova-http.
I am somewhat surprised this isn't implemented here yet
from cordova-http.
Wonderful. Many thanks :-)
from cordova-http.
Is this PR due to be merged ?
from cordova-http.
Thanks @apparition47, this repo works great!
from cordova-http.
Related Issues (20)
- Cordova plugin Fetch HOT 1
- how to stop http request HOT 1
- Uncaught TypeError: cordova.callbackFromNative is not a function HOT 1
- set http post header not work
- body args
- IOS simulator not making http request
- Android - How can I get a website's source content?
- Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)"
- Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: not found (404)"
- With Multi domain SSL certificate APIs are not working.
- How to get response.data
- unable to build on phonegap (org.apache.cordova.file does not exist) HOT 1
- cordovaHTTP can not be register HOT 4
- How to send FormData in post request?
- cordovaHTTP is not defined HOT 1
- enableSSLPinning is not working in Android and iOS
- GET API not returning response in iOS 10
- How to abort a request on cordovaHTTP?
- cordovaHTTP.get sends no data but claims internal server error (500)
- how to use with websocket?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-http.