Giter Site home page Giter Site logo

Comments (17)

apparition47 avatar apparition47 commented on June 9, 2024 2

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.

morungos avatar morungos commented on June 9, 2024 1

@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.

LowieDown avatar LowieDown commented on June 9, 2024

I second this, also having this issue.

from cordova-http.

brendonparker avatar brendonparker commented on June 9, 2024

I've submitted a PR for this: Add method: postJson #50

from cordova-http.

reyraa avatar reyraa commented on June 9, 2024

@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.

brendonparker avatar brendonparker commented on June 9, 2024

Yes, just point at my fork. That's what I am doing :)

from cordova-http.

reyraa avatar reyraa commented on June 9, 2024

@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.

brendonparker avatar brendonparker commented on June 9, 2024

should be as simple as

cordovaHTTP.postJson(url, data, headers, successCallback, failCallback);

Where data is a json object

from cordova-http.

ashbrener avatar ashbrener commented on June 9, 2024

When will this be merged ?

from cordova-http.

apparition47 avatar apparition47 commented on June 9, 2024

Does this plugin still not support JSON payloads?

from cordova-http.

brendonparker avatar brendonparker commented on June 9, 2024

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.

apparition47 avatar apparition47 commented on June 9, 2024

I noticed your fork was out of date so I ported it based on 1.0.2. Thanks @brendonparker

from cordova-http.

brendonparker avatar brendonparker commented on June 9, 2024

I've now merged in the latest.

from cordova-http.

morungos avatar morungos commented on June 9, 2024

I am somewhat surprised this isn't implemented here yet

from cordova-http.

morungos avatar morungos commented on June 9, 2024

Wonderful. Many thanks :-)

from cordova-http.

ashbrener avatar ashbrener commented on June 9, 2024

Is this PR due to be merged ?

from cordova-http.

ihadeed avatar ihadeed commented on June 9, 2024

Thanks @apparition47, this repo works great!

from cordova-http.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.