JLWest wrote:Actually II login in to SimBrief and create a Flight Plan, When I'm finished I select the aircraft and hit the download button. The flight plan is then downloaded by Simbrief to my Downloads directory.
Good JLWest. So you did well until here. You explained the big picture of your project, started to split your question into small parts easier to handle one after the othee, and you give us now a clear shot of what is exactly the task to be completed first.
Task to be completed first:
Get to the internet , get logged with login and password, then read some repository (listing) and download some item pointed on there.
Now first a general advice for best efficiency and also as a common rule of the forum (yet not absolutely mandatory but really generally better): you ll have to start a topic for each question separately. It will catch the eye more efficiently of anyone wishing to share on the very special point treated at the moment. And it helps the search engine to give better results. I must admit that I tried a search with HTTP and DOWNLOAD but they are too general, so those keywords aren't good...
Anyway right now, let me tell you that for today it's not me that will give you an example for the kind of task you want to achieve. I can tell you what I know in short , and show you examples up to these boundaries (until I get more time to investigate). But someone will help you before, just get a topic started for this.
For now, you need to understand this. You will need to ask your computer OS to send a message to a DNS (web address) via the right protocole. In general you won't have to bother so much, a library attached to your program will tell the system what you want to ask in a more simplified way. That's where I recommend SNC to get started.
Roughly what you'll do with SNC is write a series of messages easily formulated that will trigger commands like HTTP-GET to read a web page and so on.
Basically when you send a message to be connected at a web site, it will answer you and tell you if it granted you access or not. The web site will also generally send you the list of messages you must use with a text interface (it can differ from what you might do from a web browser). From then you will just to follow the steps, and you will be able to get your first web pages very quickly.
What I don't know now is how to download a file other than a html web page (=text). But I'm sure it's quite similar of getting html content downloaded.
Something that must be said right now, you should choose carefully your website for testing access repeatedly. Some websites would ban your IP if you send requests to frequently as it can happen when testing a code ;)
I know I'm just filling the page with generalities but right now I wanted to give you those first advices in order to ensure we will complete your project quite fast.
Last little thing, we are not fanatics right here. Maybe a Python program could fulfil your expectations. Anyway, exactly as in freebasic, the first step will be to get a library that will do the communication stuff in the OS format. As said before SNC is available in FB and I showed an example of its capabilities right above. So I recommend you stick at this for now. Maybe you should read the dedicated page if not already done:
https://freebasic.net/forum/viewtopic.p ... on#p231338