Telnet session ANSIW

G

Guest

Hi,
I am trying to establish a telnet session to do screen scraping. This device
returns some custom escape sequences, which I can ignore, and some standard
escape seq's. At your suggestion, I used Ethereal and netcap.exe. On
negotiation the server requests ECHO, and also BINARY. When submitting
username, it echos back every charactor I type as I type it. The password
gets an ack on every char typed, but not an echo. After that, echo returns.
When the server sends data, it may send some now, then the rest a few seconds
later. When creating a telnet client in .NET, I receive all of the
custom/standard escape seq chars and the data it is sending. When I send it
data, however, it is not being properly encoded or something. When submitting
my username to login, it rejects it. I can go to a win32 client that works
(but can't be automated without an interactive session) and the same username
password works fine on the same host. The server is some iteration of an old
UNIX OS. Version not available (proprietary).
Hyperterm does fine at default settings, status bar says ANSIW. Windows
Telnet displays everything recieved from the device ok, but rejects whatever
I type in. I suspect it's the ANSIW thing. How can I resolve this? How do I
use ANSIW in .NET 2.0? Does .NET 3.0 support this? Any 3rd party components
support this? I just tried ActiveSockets no luck.
Thanks
 
W

Walter Wang [MSFT]

Hi,

Based on my understanding, you're having trouble to send correctly-encoded
data to a remote telnet server and you've found Hyperterminal with ANSIW
emulation mode is working fine; another Win32 client is also working fine.

I've searched around but didn't find any detailed information on this ANSIW
protocol.

Although HyperTerminal is bundled with Windows XP, it's written by
Hilgraeve (http://www.hilgraeve.com/htpe/index.html). I suggest you contact
them on the implementation detail about the ANSIW information.

You mentioned that one of your Win32 clilent can connect to the server
correctly, do you by any chance to check the source code of it?

Also, if you're using a third party component to create the telnet client,
you might want to check the vendor's support to see if it supports ANSIW
emulation mode.

Sincerely,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express, please make sure you clear the
check box "Tools/Options/Read: Get 300 headers at a time" to see your reply
promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
G

Guest

Hi Walter,
Thanks for the quick reply.
Although support for ANSIW or SCO UNIX is not mentioned anywhere with any
..net 3rd party components, I did manage to finally stumble across one that
works!
Ipworks Telnet component (nSoftware) works. I get some custom escape
sequences at the beginning of the session, which I can ignore, and everything
else comes across as it should. And when I send data, it is correctly encoded.
ANY OF YOU GUYS WANTING TO COMMUNICATE w/ a
LUCENT 5ESS SWITCH IN DOT NET, THIS ONE WORKS!
Thanks Walter
 
W

Walter Wang [MSFT]

Hi,

I'm glad you've found a solution to the issue and thank you for sharing
this great experience with the community!


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top