-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Does anyone have code of a simple web browser file/script (HTML/javascript/whatever) that can upload a user selected file to a server using HTTP PUT?
Everything I keep reading says that browsers do support HTTP put, but just not through any scripting?!
What is the most common way to upload a file…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to PUT data using libcurl to mimic the command
curl -u test:test -X PUT --data-binary @data.yaml "http://127.0.0.1:8000/foo/"
which works correctly. My options look like:
curl_easy_setopt(handle, CURLOPT_USERPWD, "test:test");
curl_easy_setopt(handle, CURLOPT_URL, "http://127.0.0.1:8000/foo/");
curl_easy_setopt(handle…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I'm trying to PUT data using libcurl to mimic the command
curl -u test:test -X PUT --data-binary @data.yaml "http://127.0.0.1:8000/foo/"
which works correctly. My options look like:
curl_easy_setopt(handle, CURLOPT_USERPWD, "test:test");
curl_easy_setopt(handle, CURLOPT_URL, "http://127.0.0.1:8000/foo/");
curl_easy_setopt(handle…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am using libcurl for a RESTful library. I am having two problems with a PUT message, I am just trying to send a small content like "hello" via put.
My READFUNCTION for PUT's blocks for a very large amount of time (minutes) when I follow the manual at curl.haxx.se and return a 0 indicating I…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am designing a REST API and I wonder what the recommended way to handle updates to resources would be. More specifically, I would allow updates through a PUT on the resource, but what should I allow in the body of the PUT request?
Always the complete structure of the resource?
Always the subpart…
>>> More