studioidan / httpagent Goto Github PK
View Code? Open in Web Editor NEWsuper simple library to manage http requests.
super simple library to manage http requests.
When I use one HttpAgent.post then two onDone occur. I use JsonCallback. First onDone return empty jsonResponse and the second onDone return filled jsonResponse from remote server API.
Hi
HttpAgent.post("http://192.168.1.101:8002/dummy_file/generate_oauthSignature")
.withBody("key_1","value_1","key_2","value_2","key_N","value_N") // will be converted to json
.headers("Content-Type", "application/x-www-form-urlencoded")
I do not want to convert body in to json as server side tech. requires key_1 = value_1 param as a post.
Hi,
I like this implementation - it is very quick to implement. I have trouble finding source code on this github repo - it looks like that you have deleted it. Please make it public, so we can contribute to this project.
We would like to add the possibility to return status booleans on onDone :)
Hey! I'm trying to create an app to login to a wifi hotspot but I have a problem, when I want to submit the form the mobile data is used because the wifi connection is not "working" until you submit the form. With your library can I choose to use wifi connection to post the form instead of mobile data?
Thanks!
HI
How can I upload file using this? Can you create demo for this?
Regards,
Hi,
Thanks for your contribution.
Firstly, we don't have any access to your code or you have deleted it ? I can't see any source code when I fork your project.
Secondly, I think there is a bug in your project (that's why I wanted to fork it). In case of POST Method, if you had values in "body" (.withBody("{name:popapp ,age:27}")), this is not working ! The request doesn't have the body params.
TY
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/os/AsyncTaskCompat;
at com.studioidan.httpagent.HttpAgent.executeSelf(HttpAgent.java:173)
at com.studioidan.httpagent.HttpAgent.goJson(HttpAgent.java:158)
at com.example.snapgroup6.myapplication.MainActivity.onCreate(MainActivity.java:22)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.