Results 1 to 2 of 2

Thread: Can I do this for local files?

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2003
    Location
    C:\Windows\Microsoft.NET\Framework
    Posts
    574

    Can I do this for local files?

    What happens when you do this:

    Code:
    Winsock1.SendData "GET /lanmannt.bmp" & vbCrLf & vbCrLf
    Does it have to be a file on a Web server only? Can I do this with a local file on my disk? I guess I can't because what you send is ultimately a regexp command in a string, and when it is recieved, the server executes the command. Its not the file being sent. And so when I send something like, say:

    Code:
    Winsock1.SendData "GET  C:/lanmannt.bmp" & vbCrLf & vbCrLf
    it won't work. Am I right?

  2. #2
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654
    The result depends on:

    - what port you have connected to
    - what service is in the port (if any)
    - how well coded the service is
    - do you use proper protocol format (the data you send and how you handle the received data)


    So generally my answer to your question is no. Most often FTP / HTTP servers have a defined home path and it is against the both HyperText Transfer Protocol and File Transfer Protocol to use Windows style drive definitions.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width