Making HTTP Requests using maxurl
Does anyone have any success using maxurl to make http requests? Im having a hard time translating my request which works in the browser and in postman.
The Curl Request
curl --location 'https://retune.so/api/chat/11ee36a7-524e-d340-978f-911a3e98cd6d/new-thread' \
--header 'Content-Type: application/json' \
--header 'X-Workspace-API-Key: 11ee6a0d-28d8-a5b0-802c-c9fa83996ab2' \
--data ''
HTTP
GET /api/chat/11ee36a7-524e-d340-978f-911a3e98cd6d/new-thread HTTP/1.1
Host: retune.so
Content-Type: application/json
X-Workspace-API-Key: 11ee6a0d-28d8-a5b0-802c-c9fa83996ab2
Have you checked the max url help file? The header tab would show how to set the header fields for making the request using a dict.
Alternatively the XMLHttpRequest tab shows you how to use maxurl from within the [js]
object.
Does that help?
On a different note - your original post contains an API-Key, which maybe you wouldn't want to public on the forums?
Yes that does help. I dont know how I missed that. duh! thank you so much