dart-lang / dart-lang/http

Add support for formdata in body parameter.

Open
#518 1 comment 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

Please add support for form data in HTTP post request body parameter.

I was using map as parameter, but the API accepts form data only. So, I always got "bad data" error.

Then I shifted to DIO and worked like a charm!

After hours of wondering, I found that HTTP does not support formdata yet.

Please add the feature.
Many thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the HTTP POST request body-parameter handling and inspect how map parameters are encoded; no file or test is named in the issue. Done means form-data bodies are accepted by the HTTP client for POST requests without the reported “bad data” error, with coverage for that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.