curl-and-php
Re: Curl or Java or ??
Date: Tue, 11 Dec 2007 14:44:02 -0800 (PST)
Gil, thanks for your reply. There is in fact an applet that loads with that page. Normally that has to be installed on the client computer to allow connections. On that page it states that Java Runtime Ver 1.4 or 5 is required to run. This has me thinking that Java in the bot will be needed.
Interestingly, I got my bot to do all the signing in and get me to the same view of the terminal emulator. (Opening the webbot in a browser that doesn't have this 'JHTE' installed, won't allow typing in commands.)
Found this embedded in the results of my webbot page: Does this help?
https://www.webpcfos.com/webpcfos/websabre/JHTE.jar'
WIDTH='100%' HEIGHT='100><
Any ideas?
David Colter
----- Original Message ----
From: Morgan Galpin <morgan_at_atsourceinc.ca>
To: curl with PHP <curl-and-php_at_cool.haxx.se>
Sent: Tuesday, December 11, 2007 3:01:55 PM
Subject: Re: Curl or Java or ??
Hi David,
I don't know what communication protocol your host terminal emulator
uses to connect to your company's system. My first guess would be that
it uses telnet, but that seems like it would be too insecure for a
company to consider using over the internet. According to cURL's
documentation, it does support the telnet protocol, but that is as much
as I know. If cURL supports it, PHP/libcurl probably supports it. As
far
as I know, telnet is a raw TCP/IP connection, so the actual commands
and
data sent back and forth from your company's machine you would have to
decipher.
Look at the page source for the page that loads the applet(?) and see
if
there is a parameter indicating which host and port the terminal
connects to and try to figure out what form of authentication it uses.
If you can't find what you're looking for, you could try a sniffer
program like Ethereal. Look at what data is being sent and received and
try to figure out where your computer is connecting and the protocol
being used. If the communication is encrypted, likely via SSL, the
protocol will be more difficult to determine.
I hope that helps,
Morgan Galpin.
David Colter wrote:
> Many thank for the previous answers. They have help imensely in
developing a script to access info from my company's computer. I haven't
seen in the documentation where curl will help with this next hurdle. I'm
so close I can smell it!
>
> So what to use when it reaches the place where usually I'm entering
data through a JRE host terminal emulator. This no longer entails
posting or getting pages. There is no refreshing, just sending short keyboard
entries and watching the response scroll by. It seems so easy with a
browser. Can curl handle this or would I be better served with another
language? Scripts have been around for years to handle this. I'd like to
stay within PHP/CURL.
>
> I really appreciate the assistance with learning curl.
>
> David Colter
>
>
>
>
>
____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
> _______________________________________________
> http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
>
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-php
Received on 2007-12-11