Skip to content

Join GitHub (or sign in) to find projects, people, and topics catered to your interests.

Here's what's popular on GitHub today...

C++ logo
Popular topic
C++ is a general purpose and object-oriented programming language.
js13kGames competition
Upcoming event recommended by GitHub
Aug
13

js13kGames competition

August 13, 2020 - September 13, 2020 • Online

Do you have what it takes to create a game in ≤ 13kB of JS, CSS and HTML?
Trending repository
zohaad
zohaad commented Apr 14, 2020

I tried to find this in the documentation and examples, but there's no example of a manual request being made, only <form action="/login" method="post">

I tried:

let form = this.document.getElementById( 'loginForm' );
var formData = new FormData( form );
let res = await fetch( '/', {
    method: 'POST',
    body: formData,
    header: { 'Content-Type': 'multipart/form-data' },
})
App recommended by GitHub

GitHub Learning Lab

Level up your skills with GitHub Learning Lab. Our friendly bot will take you through a series of fun, practical projects to learn the skills you need in no time—and share helpful feedback along the way.

App recommended by GitHub

DeepScan

Tired of the troubles with JavaScript? DeepScan can help you.

DeepScan is an advanced static analysis tool engineered to support JavaScript, TypeScript, React, and Vue.js.

You can use DeepScan to find possible runtime errors and quality issues instead of coding conventions. Integrate with your GitHub repositories to get quality insight into your web project.

You can’t perform that action at this time.