Yeah,
Does i need Install a libary?
Die you have a smale example/Script?
Yeah,
Does i need Install a libary?
Die you have a smale example/Script?
9 minutes ago, jumbo125 said:Yeah,
Does i need Install a libary?
Die you have a smale example/Script?
Cura has the option to do requests built in, see
There are quite a few of examples in the Cura source code where we use this to get responses from a server.
As for how to set up an API in PHP, i don't have any experience with that, but there are tons of examples on the internet about that.
Thank you a lot for your help!!!
i think the solution is in this code:
def post(self, url: str,
headers_dict: Optional[Dict[str, str]] = None,
data: Optional[Union[bytes, bytearray]] = None,
callback: Optional[Callable[["QNetworkReply"], None]] = None,
error_callback: Optional[Callable[["QNetworkReply", "QNetworkReply.NetworkError"], None]] = None,
download_progress_callback: Optional[Callable[[int, int], None]] = None,
upload_progress_callback: Optional[Callable[[int, int], None]] = None,
timeout: Optional[float] = None,
scope: Optional[HttpRequestScope] = None) -> "HttpRequestData":
return self._createRequest("post", url, headers_dict = headers_dict, data = data,
callback = callback, error_callback = error_callback,
download_progress_callback = download_progress_callback,
upload_progress_callback = upload_progress_callback,
timeout = timeout,
scope = scope)
now i only need to unterstand, to write the correct syntax to send the request and get the data with scope. I think scope is the successful... is it right?
okay. i think that's too much for me. Thank you
@nallath i can't give Up....
Do you can me tell, where Dome Code Part in the Cura source Code?
Thank you
Okay i did it, but it didn't work correct. At this time i get no fails, but it didn't connect to server
the code
Sorry. My fail.
Please delete post
Edited by jumbo125my fail
Edited by jumbo125
Recommended Posts
nallath 1,118
Yep.
Link to post
Share on other sites