This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Logicmachine + Neato JS SDK
#3
(14.03.2019, 13:33)Daniel. Wrote: Hi try this


Code:
robot = '2'



https = require('ssl.https')
escape = require('socket.url').escape

url = 'https://mywebsite.com/robot.php?start_robot=%s'
url = string.format(url, escape(robot))

res = https.request(url)
log(res)



Code:
* string: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<p>Additionally, a 400 Bad Request
error was encountered while trying to use an ErrorDocument to handle the request.</p>
</body></html>


Maybe should i try implement some header?
Reply


Messages In This Thread
Logicmachine + Neato JS SDK - by usyntax - 14.03.2019, 12:27
RE: Logicmachine + Neato JS SDK - by Daniel - 14.03.2019, 13:33
RE: Logicmachine + Neato JS SDK - by usyntax - 14.03.2019, 14:20
RE: Logicmachine + Neato JS SDK - by admin - 15.03.2019, 07:11

Forum Jump: