I have done the following:
Code: Select all
put "Authorization: Basic " & tUsr & tPwd & cr &\
"Content-Type: application/json" & cr &\
"PUT /_db/key2publish/_api/cursor/13499179 HTTP/1.1" & cr &\
"Host: localhost:8529" into tHeaders
set the httpHeaders to tHeaders
put URL tURL into tContent
Content of the libURLLastHTTPHeaders(): (As you can see where there is a GET there should be a PUT)
Code: Select all
GET /_db/key2publish/_api/cursor/13514325 HTTP/1.1
Host: localhost:8529
Accept: */*
User-Agent: LiveCode (Win32)
Authorization: Basic cm9vdDprZXkycHVibGlzaA==
Content-Type: application/json
Code: Select all
{"error":true,"errorMessage":"method not supported","code":405,"errorNum":405}