Author Topic: reading remote text file  (Read 6196 times)

0 Members and 1 Guest are viewing this topic.

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Re: reading remote text file
« Reply #15 on: May 22, 2021, 04:19:26 pm »
trying some research:
found that this error needs to be addressed by using the
InternetCrackUrlA()

https://docs.microsoft.com/en-us/windows/win32/api/wininet/nf-wininet-internetcrackurla

apparently I have to break down the url before sending it?
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: reading remote text file
« Reply #16 on: May 22, 2021, 04:19:39 pm »
@xra7en Just for me to do some testing:

  • Which version of Windows?
  • 32 or 64 bit?
  • Have you edited the code I shared at all?
  • If so, can you show me your calls to HTTPOpenRequest and the ones just before it?
Shuwatch!

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • View Profile
    • GitHub
Re: reading remote text file
« Reply #17 on: May 22, 2021, 04:21:33 pm »
In my code I gave you, my code already breaks the URL down into location and base URL. You'll see some MID$ stuff before I do some calls
Shuwatch!

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Re: reading remote text file
« Reply #18 on: May 22, 2021, 04:29:46 pm »
oops I did not do any editing...

lemme tinker with that. I see you did break it down. I want to see if I can solved this (hints are helpful - sorta like playing portal.. point the direction but not what portal to what wall haha)
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Re: reading remote text file
« Reply #19 on: May 23, 2021, 04:45:06 pm »
Ok dont see anything I need to change. I actually found your video on youtube - LOL. and your download worked fine. so it might be just how I am parsing the download

Which is the correct way:

download https://www.cooldownloadsite.com/download/filename.zip, filename.zip
or
https://www.cooldownloadsite.com/download, filename.zip

My curent setup is the first option.

I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!