Thanks Zoppo,
I am sorry i was not clear enough. My problem is what you call c). How to do the request and receive the file for further parsing like you suggested.
Main Topics
Browse All TopicsHi,
I need to parse a piece of html code on the localhost of an Alladin dongle setup to extract the id of the dongle. The html page looks like this;
{ "ndx":"2", "ven":"DEMOMA - evaluation","vid":"37515",
This file generate by the localhost as http://localhost:1947/_int
De question is how can I access this file in ansi C DLL and extract the haspid easily?
Thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Well, to do this you'll have to use OS-specific libraries for socket-implementation (i.e. 'winsock' for Windows)
Here you can find a detailed (and large) tutorial about programming sockets i.e. for use with different protocols: http://beej.us/guide/bgnet
ZOPPO
Just a small technicality (though it may help), the sample you provided:
{ "ndx":"2", "ven":"DEMOMA - evaluation","vid":"37515",
Actually is not HTML; it's a standardized data interchange format. This format is known as JSON (JavaScript Object Notation). I'm not sure whether or not this will help you, but knowing what terminology to use when searching may help you out :] the world of HTML has become rather sloppy, and this being stored in an HTML file is an example of this.
Just figured you might like to know that.
Hope it helps,
Nate
Business Accounts
Answer for Membership
by: ZoppoPosted on 2009-11-05 at 06:38:56ID: 25749862
Hi PjotterR,
what exactly is you problem?
IMO there are three different functionalities involved:
a) how to parse the string read from a file
b) read the string from a file
c) send a HTML request to the shown URL and recieve the file returned
If you have problems with more than one IMO you should ask a question for each ...
For a) I attached some sample code which parses a string as that one you posted here to find the part after "haspid".
ZOPPO
Select allOpen in new window