/$/, '') + path;
            
            // Update UI
            button.disabled = true;
            status.innerHTML = '<div class="status loading">Sending request...</div>';
            response.textContent = '';

            try {
                // Parse payload if it's a POST request
                let requestBody = null;
                let headers = {};
                
                if (method === 'POST' && payload.trim()) {
                    try {
                        requestBody = JSON.p