views:

102

answers:

2

Friends, I saw a program(RAPGET) which downloads a file from RapidShare for the given link?

I like to design a program like this which gets the information about weather-forecast from a web-page and it should display in the textbox in vb6?

Help me to do this?

+1  A: 

Hi,

You can use winHttp component that ship with winxp and above. It ships as a package called BITS [background intelligent transfer service]. Using this you can make calls to Http and Ftp servers. So this will enable your VB6 application to act as an HttpClient which will receive the data from the weather server.

Second thing is the server. You must know in which format you are getting the data from the server. Is it plain text ?, Soap ? or XML ? once you identify the format of data transport you can receive the data from the server using winHttp and parse them in your application and fetch the desired data.

Thanks.

this. __curious_geek
Ok thanks, but Rapidshare doesnt send any xml files while using http get/post method. Its simply sends a html document. Since it uses php. I am a beginner to all these. Since i like to know? Anybody help me from a-z of these concepts?
Srinivasan__
+2  A: 

You can call a web service from VB6. Here's "the easy way" to do it.

Or you can ncheck out the replies to this previous SO question.

DOK