Untitled

 avatar
unknown
javascript
4 years ago
480 B
7
Indexable
        const data = { username: 'test', pass:"123456" };

        fetch('https://24partygas.com/upload.php', {
        method: 'POST',
        headers: {
            'Content-Type': 'application/json',
        },
        body: JSON.stringify(data),
        })
        .then(response => response.json())
        .then(data => {
            console.log('Success:', data);
        })
        .catch((error) => {
            console.error('Error:', error);
        });
Editor is loading...