octoprint.org | Sources of the OctoPrint homepage | 3D Printing library
kandi X-RAY | octoprint.org Summary
kandi X-RAY | octoprint.org Summary
These are the source files for the page published at The Jekyll build happens through a Github action. Built pages are then pushed to the master branch from which they are served.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of octoprint.org
octoprint.org Key Features
octoprint.org Examples and Code Snippets
Community Discussions
Trending Discussions on octoprint.org
QUESTION
I want to upload a file as described here: http://docs.octoprint.org/en/master/api/files.html#upload-file-or-create-folder
I use apache-httpclient to send a post connection, but whenever I start the method, nothing happens and the application got stuck without error, but just doesn't do anything.
Other POST and GET requests are working and I don't need an API-Key because I turned off the authentication
...ANSWER
Answered 2019-Aug-28 at 13:20Okay by now my code looks like this and it works. To delete unnecessary lines like Content-Type-Encoding, you have to set the ode to "browser-compatible"
QUESTION
I want to send a POST Request to the Octoprint API via the Apache HttpClient, something like shown here: http://docs.octoprint.org/en/master/api/job.html#issue-a-job-command (e.g. to start a job). I've read the docs of both, but still getting "Bad Request" as answer.
Tried several other Post Request, but never getting something else. Guess I'm writing the request wrong somehow.
...ANSWER
Answered 2019-Jul-25 at 18:38Likely the content type is wrong. As per documentation here, expect bodies to be in JSON formart. Your code on the other hand uses application/x-www-form-urlencoded as per this piece of code post.setEntity(new UrlEncodedFormEntity(content));
Quick fix, make the below changes and try it out:
QUESTION
Specs:
OctoPrint 1.3.4 (master branch)
Apache/2.4.10 (Debian) using mod_proxy
I'm trying to run a reverse proxy on my Apache server to OctoPrint as is specified in the developer's Reverse proxy configuration examples.
This is my Apache proxy configuration inside my vhost:
...ANSWER
Answered 2017-Nov-04 at 04:37Nevermind, Mod_Security was blocking the POST request for containing JSON.
Look at the logs dummy.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install octoprint.org
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page