Untitled

mail@pastecode.io avatar
unknown
javascript
3 years ago
480 B
4
Indexable
Never
        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);
        });