Comments (5)
I'm getting a bit desperate and can't seem to figure this out. Please help.
Many Thanks,
PJ
from cordova-http.
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.
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.
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.
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)
- 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.