Uploading a worker fails with error 405?

api

#1

Using the worker upload API, and it is returning 405 (method not allowed).
(a) Is there a way to upload the javascript directly as a string rather than an uploaded file (not good!)
(b) why am I getting a 405?


#2

Turns out to be my unfamiliarity with curl syntax. The API call does take a string of javascript program and not a URL to a .JS file. Makes much more sense, and is working.