Solved

HTTP using Borland C++

Posted on 2004-04-10
3
1,880 Views
Last Modified: 2007-12-19
Hi,
I need to perform a simple HTTP request using Borland C++  builder :
I want to specify a URL and retrieve the HTML into a variable.

How can I do that ?

I checked out HTTPApp unit and TWebRequest etc. but didn't find any proper manual to explain how it works...

Thank you,
ADI.
0
Comment
Question by:odedmaimon
  • 2
3 Comments
 

Expert Comment

by:Hyperon
Comment Utility
www.vijaymukhi.com/vmis/vmchap4.htm

i used this wiritng a HTTP client, it is very good, xplains how it works as well as providing code
0
 
LVL 3

Accepted Solution

by:
BTecho earned 250 total points
Comment Utility
Hi :)

for a great sample project on using the TWebBrowser/TCppWebBrowser component visit this site

http://www.bytesandmore.de/rad/index.htm

It's in german but has some great code snippets, you can also always use Altavista to translate the site. For specific snippets

http://www.bytesandmore.de/rad/cpp/files/TCppWebBrowserExe.zip

http://www.bytesandmore.de/rad/cpp/files/TCppWebBrowserSrc.zip

More resources

http://www.thebits.org/tutorials/wbr1.asp
http://community.borland.com/article/0,1410,28797,00.html


For more snippets visit the Bytamin-c forums and search for TCPPWebBrowser and TWebBrowser.


Another way is to use the Indy components, they come with source, are already bundled with C++Builder6. You can get the latest version

http://www.nevrona.com/Indy/Indy.html

an alternative to Indy is ICS, also free with source

http://www.overbyte.be

Both component packages comes with plenty of examples to get you started :-)
0
 
LVL 3

Expert Comment

by:BTecho
Comment Utility
sorry, forgot the link to Bytamin-C

http://www2.bytamin-c.com/forums/c%2B%2Bbuilder
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now