473,809 Members | 2,876 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C code for Internet Access

I would appreciate some help on what is probably a fairly simple thing
to do. I am a hardware designer, so my use of C is relatively limited,
in that I only use it to do what I need to do. Now for my own use, I
want to write a program that will download certain data for me from
the Internet. I have spent a lot of time trying to find books to tell
me how to achieve this, but with my lack of experience (and need) of
using the various Classes, I have not been successful.
I use Microsoft Visual C++ 5.0, though I really only use the C subset.
I want to write a program that will access a web site and allow me to
parse the HTML code line by line, either live as it is received or by
writing it to a file which I will open and read line by line.
Within these lines will be a number of URLs which I wish to extract
one by one and also retrieve the contents of those pages. In this case
I will open, read and close each page before moving on to the next
page. So there is never a need to have more than two different pages
open at the same time.
Can someone provide me with a simple prototype for internet access
that I can expand to perform the tasks I need.
Thanks in anticipation.

Paul Dixon
Nov 14 '05 #1
3 3462
rp**********@ya hoo.com (Paul Dixon) wrote in
news:f9******** *************** ***@posting.goo gle.com:
I use Microsoft Visual C++ 5.0, though I really only use the C subset.
I want to write a program that will access a web site and allow me to
parse the HTML code line by line, either live as it is received or by
writing it to a file which I will open and read line by line.
Within these lines will be a number of URLs which I wish to extract
one by one and also retrieve the contents of those pages. In this case
I will open, read and close each page before moving on to the next
page. So there is never a need to have more than two different pages
open at the same time.
Can someone provide me with a simple prototype for internet access
that I can expand to perform the tasks I need.


Not here. We can help you with C related problems (please post snippets of
compiling code with problems) but once you go outside the bounds of the C
language into networking, web pages, etc. you will need to find a
programming newsgroup that deals with such things.

--
- Mark ->
--
Nov 14 '05 #2

"Paul Dixon" <rp**********@y ahoo.com> a écrit dans le message de
news:f9******** *************** ***@posting.goo gle.com...
I would appreciate some help on what is probably a fairly simple thing
to do. I am a hardware designer, so my use of C is relatively limited,
in that I only use it to do what I need to do. Now for my own use, I
want to write a program that will download certain data for me from
the Internet. I have spent a lot of time trying to find books to tell
me how to achieve this, but with my lack of experience (and need) of
using the various Classes, I have not been successful.
I use Microsoft Visual C++ 5.0, though I really only use the C subset.
I want to write a program that will access a web site and allow me to
parse the HTML code line by line, either live as it is received or by
writing it to a file which I will open and read line by line.
Within these lines will be a number of URLs which I wish to extract
one by one and also retrieve the contents of those pages. In this case
I will open, read and close each page before moving on to the next
page. So there is never a need to have more than two different pages
open at the same time.
Can someone provide me with a simple prototype for internet access
that I can expand to perform the tasks I need.
Thanks in anticipation.

Paul Dixon


This is off topic actually, it is not very C related.

But anyway, if you use the lcc-win32 compiler you can do

GetHttpUrl("www .my-company.com/index.html","c: \\temp\\index.h tml");
That will retrieve the URL and store it in the local file as given

Then, you can parse it locally using some program you write.

http://www.cs.virginia.edu/~lcc-win32
Nov 14 '05 #3

"Paul Dixon" <rp**********@y ahoo.com> wrote in message

Can someone provide me with a simple prototype for internet access
that I can expand to perform the tasks I need.
Thanks in anticipation.

OT here. Try programmer's heaven (on th web). They have a vast library of
useful utilities almost certainly including routines to manipulate urls.
Nov 14 '05 #4

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

Similar topics

2
5037
by: Derek White | last post by:
Ok here's the deal. We are finally getting DSL again... but our PC is in the living room... and the youngest has figured out that if he hits the right keys... he can bring up Internet Explorer. All is fine and dandy right now, but come next week... that things wont be so dandy. I am setting our LInux router/server back up soon, and would like a quick, easy way to enable and disable our internet access. What I would like to do is have...
4
37018
by: Stefan Mueller | last post by:
I've just installed phpMyAdmin. If I have the line $cfg = 'http://localhost/php/phpmyadmin'; in my config.inc.php I can login to phpMyAdmin without any problems from my local machine. But it's not working from the Internet. To access it from the Internet I have modify the line $cfg = 'http://www.myserver.com/php/phpmyadmin';
1
18019
by: J-miami | last post by:
I am just starting to learn Perl. I had an idea that there should be free open-source Internet Cafe management software for Linux. I searched around online but couldn't find anything. The program would be appealing to anyone wanting to offer Internet access to their customers, from Internet Cafes to hotels. Who wants to pay hundreds or thousands of dollars for Internet Cafe management software? If running Linux, one could put together...
6
2591
by: Matt Hawley | last post by:
I'm facing a problem where I need to verify that my windows forms application has access to the internet before it can do anything. Currently, the only way I can think of is by creating a HttpWebRequest and point it to the specified URL I wish to connect to later on, and if that throws an error, I know I don't have an internet connection. Is this the best method for detecting an internet connection, or is there some sort of routine that I need...
6
1526
by: bissatch | last post by:
Hi, I have been tryin to run free dhtml code from a web page. The web page is: http://dynamicdrive.com/dynamicindex14/pixelate.htm When I load the page above it opens as normal and the slide show automatically runs but when I open my own page that I have saved on my desktop, created from code from the above url, SP2 bar kicks in at the
56
5983
by: Raphi | last post by:
Hi, I've been using an Access application I wrote for an office with the front-end stored on all computers and the back-end on one of them serving as an Access file server. Now we're moving to a 2nd office 15 minutes down the road. Only one office will be open at a time, so theoretically it'd be possible to copy the back-end manually every night from one office to another, but frankly, that's pretty annoying.
0
2099
by: Namratha Shah \(Nasha\) | last post by:
Hey Guys, Today we are going to look at Code Access Security. Code access security is a feature of .NET that manages code depending on its trust level. If the CLS trusts the code enough to allow it ro run then it will execute, the code execution depends on the permission provided to the assembly. If the code is not trusted wnough to run or it attempts to perform an action which doe not have the required permissions then its execution...
34
2025
by: Shiva | last post by:
Hi, My access application has been split into a frontend and a backend. The backend is on my harddisk. Now I'd like to put the backend on my homepage (thus the internet) - this would allow me to access my data from any place connected to the internet. Before trying to set this up, I'd like to know if this is possible and if it's a good idea anyway. If not, what alternatives do you have? Thanks a lot.
15
4651
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to communicate with a MySQL database table on a web server, from inside of my company's Access-VBA application. I know VBA pretty well but have never before needed to do this HTTP/XML/MySQL type functions.
3
2248
by: Chakkaradeep | last post by:
Hi all, How to retrieve Users Names and also restrict internet access to a specific users using C# ? Thanks. Regards, C.C.Chakkaradeep
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10375
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9198
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5548
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4331
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 we have to send another system
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.