I want to Receive Response and Post data from Android app to fill a Registration Form.
I want to access a website which returns session_id from the first page.
Means when App get start, I will access the Home page and get the session_id, using that session_id and some fields in my App, I want to post the data to server of website.
What should be used to do the above Task ?
I have used Jsoup and Parse HTML to get session_id ( not in Main Thread ), Succeed ,
But How to post data ? I used Another activity to load the next page of website but it shows session expired. I also find other options like using HttpURLConnection , But I don't get an appropriate Example. I am new bee to android . Please help if know.
use Android Volley , http://developer.android.com/training/volley/index.html
this is all about network solution in Android.
Related
I am in new Flutter development, what I want to implement is :
To post data to the server from A screen, and wait for the response in B screen
example:
When a user types the words/keywords in the Search Page, I want to make a POST request and wait
for the response of that request in the Result Page
I am using library:
https://pub.dev/packages/http
Check my answer on how to use http for API calls here. how to fix it Data not showing in list in flutter
To get the results on the second add the parameters you enter to the Route in navigation and execute the API call function in the second screen
My scenario is this: we point the user to a form where they fill in the data (3DSecure) and then POST, the website then POSTS the response to a callback URL - this response is what I want to capture. WebView.shouldInterceptRequest() can get the headers but not the content (Why, Google?). I tried this link and it can get the POST data that the user sends. Is there any way to use Javascript to catch the POST data being received to a callback of my choosing?
I saw this post from 5 years ago and the man resorted to POSTing the response back to a server and then getting the contents from the phone. This is far from ideal. Surely there's a newer solution?
shouldInterceptRequest() mentions that a response contains the "response information or null if the WebView should load the resource itself", how do I get it so that the WebView shouldn't load the resource itself? The source code seems to return null always.
I used this gentleman's library: https://github.com/LivotovLabs/3DSView
If one was looking to do this with something other than 3DSecure they could use it as a template.
I have a problem with PrestaShop web services. I'm creating an Android app for one service. I configured everything in panel properly, gave corresponding permissions (e.g. GET, POST, DELETE, PUT for "carts"). When I'm sending GET request I get a response. Everything works. Problems start when I try to use e.g. DELETE, PUT or POST.
I followed this tutorial:
http://blog.belvg.com/prestashop-web-services.html
I make my test requests via site https://www.hurl.it/
Trying to update something, for instance, cart number 1 I get it by:
http:// MYDOMAIN .pl/api/carts/1?schema=synopsis
Then I edit some fields and try to send it back by PUT method and XML as the parameter, but I get:
<H1>400 Bad Request</H1>
Your browser sent a request that this server could not understand.
Trying to add a new cart does not work also. I try it by getting blank XML:
http://MYDOMAIN.pl/api/carts?schema=blank
That gives me blank XML. When I will not fill this XML and I try to send it back by POST I get the message:
<message>
<![CDATA[Internal error. To see this error please display the PHP errors.]]>
</message>
What means possibly it can work. But when I will fill it with data, I get again 400... Any Idea what I can be doing wrong? Did I miss something?
P.S. I have access to an only panel (not server) and can do things only via panel and send requests.
I am hitting my Exchange server using (EWS+Basic Authentication). I could authenticate and hit my services with these Request GetItem (E-mail Message),SyncFolderItems and few other and getting the response successfully. I could parse the SyncFolderItems response to get basic info abt the Mail Items (Like Subject,To,From,HasAttachments etc.). But when i hit the GetItem request i am receiving a response but i couldnt get the Mail item Body (i.e, the Message). Is it any tutorial to do this. I am using XMLPullParser..
The response might be look like this . Plz guide me on this
I've used JWebServices for Exchange (Android version) several times. It's not free but accomplished what I needed. You should try the API to see if they get correct Body to see if your application fails or body is empty.
Thanks for ur valuable replies.. I found the data (values) that i stored from the saxparser is not complete. So only i couldnt get the html content properly in the webview.
i used the following link as reference and used the string buffer to resolve this issue.
Thx
Currently I am working on payment integration for native android app after send the request it have given me post back url with some attributes as success/fail response. I can't understand that how can I get those post back url attributes values using WebView . If any one know,
Please suggest me some idea for that.