Reading internet data using a C++ program

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 14
Reputation: yazooney is an unknown quantity at this point 
Solved Threads: 0
yazooney yazooney is offline Offline
Newbie Poster

Reading internet data using a C++ program

 
0
  #1
Aug 6th, 2008
hey,

I want to read internet data through a C++ program. I am told that the way to do this is by using a proxy server and spitting out the data through the proxy to a file which then can be read.

How exactly do you setup a proxy server which preforms this task (i.e. all the internet data going through it is sent to a file). Can someone help me out or show me where to look to get the information.

Thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 459
Reputation: Agni is a jewel in the rough Agni is a jewel in the rough Agni is a jewel in the rough Agni is a jewel in the rough 
Solved Threads: 71
Sponsor
Agni's Avatar
Agni Agni is offline Offline
Posting Pro in Training

Re: Reading internet data using a C++ program

 
0
  #2
Aug 6th, 2008
what do you mean by 'read internet data' ? If it means making an HTTP 'get' request to some URL and getting the data that i think you can try using the 'curl' library http://curl.haxx.se/
Last edited by Agni; Aug 6th, 2008 at 2:02 pm.
thanks
-chandra
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 14
Reputation: yazooney is an unknown quantity at this point 
Solved Threads: 0
yazooney yazooney is offline Offline
Newbie Poster

Re: Reading internet data using a C++ program

 
0
  #3
Aug 6th, 2008
Hmmm i dont think thats what i mean. I downloaded java program which has live stock prices updated second by second. The prices are updated via the program conncecting to the internet.

What I want to do is capture these prices from the program and store them within my own program. I spoke to someone who said one way of doing this is by routing the internet feed the program uses (not sure if this is the right terminology) through a proxy server and saving the data files sent to the program. If the program receivces the internet data via xml files then it can be possible to capture the prices from the data sent via the internet to the program which displays the data.

What I want to know is how do I set up and use a proxy to intercept the data files sent and then transfer the data to a file so it can be read?

Hope that clears it up
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 116
Reputation: Bladtman242 is an unknown quantity at this point 
Solved Threads: 3
Bladtman242 Bladtman242 is offline Offline
Junior Poster

Re: Reading internet data using a C++ program

 
0
  #4
Apr 19th, 2009
Agni: the lib you are refering to, does it only work in linux or am i mistaken?
Yo god, where do i report a bug?
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is offline Offline
Posting Virtuoso

Re: Reading internet data using a C++ program

 
0
  #5
Apr 19th, 2009
Originally Posted by yazooney View Post
What I want to know is how do I set up and use a proxy to intercept the data files sent and then transfer the data to a file so it can be read?
Intercepting data, that's actually the base of a firewall ...

Edit:: The following post is maybe what you're looking for (if you're using Windows): http://www.daniweb.com/forums/post784786-3.html
Edit:: This thread might be also useful for you ...
Last edited by tux4life; Apr 19th, 2009 at 12:25 pm.
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 106
Reputation: jen140 is an unknown quantity at this point 
Solved Threads: 5
jen140 jen140 is offline Offline
Junior Poster

Re: Reading internet data using a C++ program

 
0
  #6
Apr 19th, 2009
You could use a network sniffer , to see what packets and to where are being sent/recieved . And after ,try recreating the same in c++ using sockets .
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC