Recent

Author Topic: Accessing Directory on Web Server  (Read 3085 times)

robnixon

  • Newbie
  • Posts: 2
Accessing Directory on Web Server
« on: September 10, 2017, 06:37:26 pm »
I've seen code for accessing a Directory on a Web Server from Win10 PC, but it uses TNetResource which the compiler does not know.  Cannot find which unit it may be in (or perhaps it's a Delphi item).  Anyone got a solution, either to TNetResource or some other technique?  (Windows Explorer finds the server and can access via username and password.)

Almir.Bispo

  • Jr. Member
  • **
  • Posts: 91
  • CSV Comp DB is the Best NoSQL
    • CSV Comp DB (NoSQL)
Re: Accessing Directory on Web Server
« Reply #1 on: September 10, 2017, 07:10:19 pm »
I dont know what work you need.You can maybe use LNET ftp component.
CSV Comp DB Developer {Pascal Lover}

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Accessing Directory on Web Server
« Reply #2 on: September 11, 2017, 08:19:33 am »
Check first what the web server provides. It can be FTP, HTTP or any other protocols. Then search for library implementing that protocol.

robnixon

  • Newbie
  • Posts: 2
Re: Accessing Directory on Web Server
« Reply #3 on: September 15, 2017, 12:28:35 am »
Thanks for the responses, but the ftp solution looks a complex one just to list a directory contents.  I may live with a Win Explorer solution for the time being.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8747
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Accessing Directory on Web Server
« Reply #4 on: September 15, 2017, 06:34:12 am »
Thanks for the responses, but the ftp solution looks a complex one just to list a directory contents.  I may live with a Win Explorer solution for the time being.
Win Explorer understands SMB, FTP and HTTP (when the web server is configured to allow such action, it's not magically available even if some packager preconfigures it). It's no way complex, unless you see it from POV of a local file explorer.

 

TinyPortal © 2005-2018