PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Petrus Vorster on March 18, 2013, 01:52:45 PM

Title: Sending and receiving data from Public website
Post by: Petrus Vorster on March 18, 2013, 01:52:45 PM
Ok this seems a bit ambitious, but it will save me loads of time if it can be done.

We use a normal public assessable website to track items for clients. When its not found many people wants a call back as soon as something pops up, which it never does since i will have to try again later, over and over again and be swamped in Sticky notes all over the place. (The site updates about 3 times a day)

I want to write a tool that will (preferably without a web browser) send the Tracking number to this website and record any returns like it would have returned on the website.
I can then later refer all the days calls and see what progress have been made with all the calls for the day and eliminate the ones that had some progress.

I can forget about getting server access, so this must be the route.
Any suggestions on how to achieve that? Web services is NOT my strong point!!!

Will appreciate any help!!
Title: Re: Sending and receiving data from Public website
Post by: Petrus Vorster on March 19, 2013, 02:14:04 PM
Any specialist here on WINSOCK?
The C++ boys recons its easy.
Hard to find Winsock examples on Website connections.

Any pointers?
Title: Re: Sending and receiving data from Public website
Post by: Rolf Brandt on March 21, 2013, 06:08:05 AM
Hello Petrus,

Winsock will always need a Client and a Server side, and some sort of protocol that you can define yourself. This means you need to have access to the server.
Title: Re: Sending and receiving data from Public website
Post by: Petrus Vorster on March 22, 2013, 04:19:41 AM
Hi Rolf

Thanks, after some reading and research I finally realised that.
On the Powerbasic forums, there is a simple example with TCP/IP but it requires ports which is all usually closed by the administrator. (The example downloads a file from Powerbasic).
Instead of a port it calls on the HTTP service. But it wont run from work.

So how does a Browser connect to that website if all ports are closed for other apps? It must be using some gateway or port.
Logically perhaps with the WININET.inc there has to be some way to mimic this.
But examples are hard to find!


Title: Re: Sending and receiving data from Public website
Post by: Rolf Brandt on March 22, 2013, 04:37:52 AM
The Browser usually connects via Port 80, the general HTTP port, which is generally open.