Issue with Httpobject and Telnet in T3D (3.6.1)

Scripting questions, discussions, etc
2 posts Page 1 of 1
JackStone
Posts: 67
Joined: Fri Oct 02, 2015 1:03 am
by JackStone » Wed Jan 20, 2016 10:23 pm
Hello,

I am working on a simple project which connects to NASA JPL's "Horizons" telnet server to download the position of the planets.

I can do this with a regular Windows 10 telnet console easily, and I can connect to the server using HttpObject, but I cant seem to send any queries to the server.

With a regular Telnet console, I connect to the servers address (there is no login/password), receive the login screen and information. and I then get a prompt:

Horizons>

Where I can enter commands.

With T3D, I use:

$url = "ssd.jpl.nasa.gov:6775";
$URI = "mars";
$query = "mars";
$httpobj.post($url,$URI,$query,"mars");

and I get the login screen, but no prompt, and I can't use get (or post, or send) to send the commands that I need to send. I think the issue is the lack of a command prompt in T3D. With a regular telnet client it is "realtime", T3D seems to need intermittent "get" commands, which doesn't seem to be working.

Any ideas how to solve this?

Thanks!
JackStone
Posts: 67
Joined: Fri Oct 02, 2015 1:03 am
by JackStone » Wed Jan 20, 2016 10:37 pm
Nevermind, I solved this,I should have been using TCPobject, not HTTPObject, thanks anyway!
2 posts Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest