473,513 Members | 2,368 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HTML appropriate for my task?

Greetings,

I have just started a new job and need to develop a routine that
accesses the web. I am experienced with assy, c/c++, and tcl/tk, but
know almost nothing of HTML.

My task is to repeatedly download a file of known size repeatedly from
our company server to a mobile laptop (Windows XP) in order to check
connectivity as the vehicle is driver around an area. I would like to
be able to specify the retrieval interval, stop and start the routine,
and keep track of the success/failure of the attempt. Since I expect to
run into areas of poor reception I need to be able to set a short
timeout so a failure can be noted and then continue the cycle.

Do you think this sounds like an html/php type task or would it be
better done in a script?
Thanks,

john

Dec 27 '06 #1
7 1547
In article <11**********************@79g2000cws.googlegroups. com>,
jo*******@texoma.net says...
Greetings,

I have just started a new job and need to develop a routine that
accesses the web. I am experienced with assy, c/c++, and tcl/tk, but
know almost nothing of HTML.

My task is to repeatedly download a file of known size repeatedly from
our company server to a mobile laptop (Windows XP) in order to check
connectivity as the vehicle is driver around an area. I would like to
be able to specify the retrieval interval, stop and start the routine,
and keep track of the success/failure of the attempt. Since I expect to
run into areas of poor reception I need to be able to set a short
timeout so a failure can be noted and then continue the cycle.

Do you think this sounds like an html/php type task or would it be
better done in a script?
Thanks,

john

What you are seakign of John, appears to be at a lower level than HTML.

It sounds to me like you need to brush up on a bit of basic HTTP, and
use a socket directly.

At that level, its basically; open a socket to the server and send it
text such as:

"
GET /file.txt HTTP/1.1\n
Host: server.name.example.invalid\n
\n
"

Then read the resulting socket stream.
The Proper Web server will add lots of HTTP headers an empty line then
the file contents. Any error will be in the HTTP result returned on the
first line of headers.
AJ
Dec 27 '06 #2
HMS Surprise wrote:
Do you think this sounds like an html/php type task or would it be
better done in a script?
I'd write something in Perl. You could use an HTML interface, if you
wanted to.
Dec 27 '06 #3
On 2006-12-27, HMS Surprise <jo*******@texoma.netwrote:
Greetings,

I have just started a new job and need to develop a routine that
accesses the web. I am experienced with assy, c/c++, and tcl/tk, but
know almost nothing of HTML.

My task is to repeatedly download a file of known size repeatedly from
our company server to a mobile laptop (Windows XP) in order to check
connectivity as the vehicle is driver around an area. I would like to
be able to specify the retrieval interval, stop and start the routine,
and keep track of the success/failure of the attempt. Since I expect to
run into areas of poor reception I need to be able to set a short
timeout so a failure can be noted and then continue the cycle.

Do you think this sounds like an html/php type task or would it be
better done in a script?
A script that runs on the laptop. Of the languages you mention above,
Tcl would be more than suitable. You can use its http package to
retrieve the file.
Dec 27 '06 #4

HMS Surprise wrote:
I have just started a new job and need to develop a routine that
accesses the web. I am experienced with assy, c/c++, and tcl/tk, but
know almost nothing of HTML.
HTML is about as appropriate for this as Word or PDF. You'll probably
use it, but it won't ever form the core of your application. It'll be
the end presentation format to the user at most.

If you did try to do this "in HTML" then you could produce one of those
still-popular abominations where HTML is used as a wrapper around
snippets of JavaScript. It might even work afterwards, but no-one will
ever understand your code.

You could well code this to "run on a web server". That's a pretty fair
way to do it, but you're coding _in_ some server-side language (perhaps
PHP, although it's not my favourite), rather than in HTML.

You might even do this in Tcl/Tk if that's what you already know.
Personally though I'd use Python.

Dec 27 '06 #5


Andy Dingley wrote:
HMS Surprise wrote:
I have just started a new job and need to develop a routine that
accesses the web. I am experienced with assy, c/c++, and tcl/tk, but
know almost nothing of HTML.

HTML is about as appropriate for this as Word or PDF. You'll probably
use it, but it won't ever form the core of your application. It'll be
the end presentation format to the user at most.

If you did try to do this "in HTML" then you could produce one of those
still-popular abominations where HTML is used as a wrapper around
snippets of JavaScript. It might even work afterwards, but no-one will
ever understand your code.

You could well code this to "run on a web server". That's a pretty fair
way to do it, but you're coding _in_ some server-side language (perhaps
PHP, although it's not my favourite), rather than in HTML.

You might even do this in Tcl/Tk if that's what you already know.
Personally though I'd use Python.
Thanks all for posting. I lost my original post and in re-editing I
changed html/php to html. So I see how my post seems confused (
confusion seems to be my constant ally these days.).

What I was hoping for was that php ( which I must also learn) would be
a candidate for this app. However after giving it some thought I don't
believe a server side app would be appropriate because I am expecting
to lose contact from time to time. It would probably be best to run it
client side so I can control the process regardless of connection.

I used tcl some years ago and I am glad to see that it has an http
package. Perhaps that would be my quickest solution as tk would allow
me to cob together a simple GUI.

BTW Andy, if PHP is not your favorite web development language may I
ask what is? Python? Always like to hear other's opinions, especially
since you are far more learned on this subject than me.

Thanks again,

jh

Dec 27 '06 #6

HMS Surprise wrote:
BTW Andy, if PHP is not your favorite web development language may I
ask what is?
I don't have just one -- I do "web development" on everything from huge
squillion dollar web applications (Java) through to 5-minute hacks that
only I will ever use (Python). I also generate much of my "content" via
XSLT. Horses for courses.

Dec 27 '06 #7
HMS Surprise wrote:
Greetings,

I have just started a new job and need to develop a routine that
accesses the web. I am experienced with assy, c/c++, and tcl/tk, but
know almost nothing of HTML.

My task is to repeatedly download a file of known size repeatedly from
our company server to a mobile laptop (Windows XP) in order to check
connectivity as the vehicle is driver around an area. I would like to
be able to specify the retrieval interval, stop and start the routine,
and keep track of the success/failure of the attempt. Since I expect to
run into areas of poor reception I need to be able to set a short
timeout so a failure can be noted and then continue the cycle.

Do you think this sounds like an html/php type task or would it be
better done in a script?
Thanks,

john
If the laptop uses some form of Windows, I would create a .bat file
script that pings the server within a loop, exiting the loop and setting
an alarm if a ping fails after some delay.

If the laptop uses Linux or is a UNIX machine, a similar script can be
created.

--

David E. Ross
<http://www.rossde.com/>

Concerned about someone (e.g., Pres. Bush) snooping
into your E-mail? Use PGP.
See my <http://www.rossde.com/PGP/>
Dec 27 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2457
by: jaydog | last post by:
Hello... I'm new to XSL, and I've written a XSLT file that converts a XML file to HTML format. When viewed in a browser, it appears exactly as I would like. However, if I want to look at the...
17
29805
by: mickjames | last post by:
Hi, I'd like to include the whole web page content (as opposed to just the headlines) into RSS/XML to enable people to read them via rss feed readers. Question: how to convert HTML elements...
2
1252
by: Ryan Riddell | last post by:
I have a repeater where I output user comments (255 char limit). I want to give the user the ability to add <i>italic</i> and <b>bold</b> font using standard HTML tags. I changed the repeater...
7
1475
by: Rajiv Gupta | last post by:
Hi, We are moving from asp to asp.net. In our existing model we execute the asp by including them in .html files. For example: In abc.html file we include following directive: <!--exec...
6
5479
by: Paolo Pignatelli | last post by:
I have an aspx code behind page that goes something like this in the HTML view: <asp:HyperLink id=HyperLink1 runat="server" NavigateUrl='<%#"mailto:" &amp;...
82
6222
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
59
3618
by: phil-news-nospam | last post by:
In followups by Brian O'Connor (ironcorona) to other posts, he repeats the idea that using tables in CSS is not something that should be done because IE doesn't support it. Of course I'm not happy...
27
3797
by: prt7u | last post by:
Howdy, I've started back afte a very long time of working with web pages for an organization that I am affiliated with (personally not professionally). Seeing that technology has advanced a lot...
4
5056
by: cybervigilante | last post by:
I sent HTML formatted email, using PHP, to my Yahoo address from my server, and it came out fine, styles and all. I sent it to my gmail address to test it and all I see is the raw html code. But I...
0
7175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.