Giter Site home page Giter Site logo

Question: Adding POST body about cordova-http HOT 5 CLOSED

wymsee avatar wymsee commented on September 28, 2024
Question: Adding POST body

from cordova-http.

Comments (5)

hubbubca avatar hubbubca commented on September 28, 2024

I'm getting a bit desperate and can't seem to figure this out. Please help.

Many Thanks,
PJ

from cordova-http.

cvillerm avatar cvillerm commented on September 28, 2024

Does your question mean that the current post API doesn't send parameters in the POST body? This is what I would expect by default from a POST API. I don't remember seeing any mention to this in the README file.

from cordova-http.

hubbubca avatar hubbubca commented on September 28, 2024

It doesn't send arbitrary strings (XML for instance). It probably formats
named value pairs as you expect.

On Wed, Nov 12, 2014, 05:57 Claude Villermain [email protected]
wrote:

Does your question mean that the current post API doesn't send parameters
in the POST body? This is what I would expect by default from a POST API. I
don't remember seeing any mention to this in the README file.

Reply to this email directly or view it on GitHub
#28 (comment).

from cordova-http.

cvillerm avatar cvillerm commented on September 28, 2024

I didn't test POST. I just thought from your issue title that post parameters could only be passed as query string arguments (as for GET). Sorry for misunderstanding.

To add the POST body, although I don't have experience with it (apologies for my naive description following), I can see in class AFHTTPRequestOperationManager ("manager" is an instance of it) that there is a variant of the POST method with an argument "constructingBodyWithBlock". You may try to call it in case you want to set the body youself.

from cordova-http.

hubbubca avatar hubbubca commented on September 28, 2024

No worries :). My fork of the repo has the required changes to support
passing a post body.

Cheers,
PJ

On Wed, Nov 12, 2014 at 9:12 AM, Claude Villermain <[email protected]

wrote:

I didn't test POST. I just thought from your issue title that post
parameters could only be passed as query string arguments (as for GET).
Sorry for misunderstanding.

To add the POST body, although I don't have experience with it (apologies
for my naive description following), I can see in class
AFHTTPRequestOperationManager ("manager" is an instance of it) that there
is a variant of the POST method with an argument
"constructingBodyWithBlock". You may try to call it in case you want to set
the body youself.

Reply to this email directly or view it on GitHub
#28 (comment).

Patrick J P Shields
[email protected]

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.