How to get return POST API in Flutter

I need your help. I've been follow tutorial for POST API from <a href="https://medium.com/@kashifmin/flutter-login-app-using-rest-api-and-sqflite-b4815aed2149" rel="no...

Post request with Cookies in Flutter

I'm trying to add Cookies to my request: Here i get <code>csrftoken</code> with a <code>GET</code> request: <pre><code> Future&lt;String&gt; getCsrftoke...

Writing data to an existing file in the host server using http in flutter

I want to make a json file on the server, and then update this json file using flutter http method in my app. I will get user ID, and if the user ID is already present...

How to encode Object to Json in flutter

I have a Subject object <pre><code>class Subject { String subjectName; int pages; int fullMarks; Future&lt;Map&lt;String, dynamic&gt;&gt; toJson() async {...

how do you send a get request to get dropbox access token in flutter, I am finding it really tricky to get the get request working

I am quite new to flutter and have been struggling a lot with http post and get request, if you could please help me write the http get request to get the access token...

Flutter error even when the backend (django-rest_auth) send status code 200

when I try to sign in with backend (django), the status code showed by the back end is correct : POST /auth/login/ HTTP/1.1 200 50 but the flutter...

Post api is not working but it works on postman in flutter

I am working on one flutter project.On which i am facing one issues on POST api.It works properly in postman but gives error in post method in flutter. please help me...

POST request from Flutter to deployed Azure Flask application not working

I am trying to send an image from my flutter mobile app to my ComputerVision flask app. Everything is also working normally on my local. After deploying...

Flutter how request POST as pdf viewer

I have a request from a function in flutter <pre><code> Future&lt;String&gt; getData() async { var response = await http.post( Uri.encodeFull( w...

Flutter [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: FormatException: Unexpected character (at character 1)

In my application I am trying to login user through API, but I am getting the following error. <pre><code>E/flutter (14103): [ERROR:flutter/lib/ui/ui_dart_state.cc...

Flutter - How to send a POST request using HTTP in Dart?

I am using an API that converts HTTP to JSON and to get a response from the server I need to send a post request of HTML however i'm not sure how to do that? Th...

what is the best way of doing a http post in dart?

Tried posting this: <strong>{grant_type: password, password: 123456, username: user1234}</strong> with the below code <pre><code>Future&lt;HttpClientResponse&gt;...

How do I use the response header from a POST request to make a new GET request? Flutter/Dart/HTTP

I have made a POST request and received a response body and header. Now how do I use the header to make a GET request? This is the code for the POST Login Reque...

How to solve http error code 400 missing parameters in flutter?

I have a signup page where i am making a http.post request to the server by passing the parameters email,username,password,firstname and lastname. I have tried everyth...

Getting XMLHttpRequest error in Flutter Web for Razorpay API call using http post

I am getting a XMLHttpRequest error in Flutter Web for Razorpay API call using http post from past 4 days I searched on whole internet but no solution worked in my cas...