PatilShreyas/Flutter2GoogleSheets-Demo

Insert data used HTTP POST

CoderJava opened this issue · 4 comments

Hi Team,
I see in your Flutter code you used HTTP GET for send data to Google Sheet. Can you tell me why you use it and why you not used HTTP POST for send data?

Thanks.

Actually, as a good approach, at start I also tried to use POST request. But what was happening that everytime I send HTTP POST requests, I was getting Error 302: Temporarily Moved. I again tested it with POSTMan but it's fine but flutter was giving that error. After that I tried GET request and it's working fine. That's the reason why I used GET request. I'm finding solution on it. Once I got it, I'll update it. Thanks!

Actually, as a good approach, at start I also tried to use POST request. But what was happening that everytime I send HTTP POST requests, I was getting Error 302: Temporarily Moved. I again tested it with POSTMan but it's fine but flutter was giving that error. After that I tried GET request and it's working fine. That's the reason why I used GET request. I'm finding solution on it. Once I got it, I'll update it. Thanks!

Ok. I'm created #3 pull request for it. Please check and test it. Thanks.

Thanks for your interest and help for making it more perfect!

Merged PR #3