Results 1 to 6 of 6

Thread: Sending files over http

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    3

    Sending files over http

    ive created a web server as my major software project but now need to know how to transfer files. any help would be greatly appreciated.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Sending files over http

    Welcome to the forums!

    Here is one method:

    http://vbforums.com/showthread.php?t=337424

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    3

    Re: Sending files over http

    i need from the server side for images etc.

  4. #4
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Sending files over http

    Can you explain what you mean? Do you want your web server to be able to take HTTP file uploads? - this is something which server side scripts usually do, not web servers.

    However, you could use the WebDav HTTP extensions.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2005
    Posts
    3

    Re: Sending files over http

    no, at the moment my server can handle html text but i want it to be able to send images as well to the browser.

  6. #6
    Junior Member
    Join Date
    Aug 2005
    Posts
    27

    Re: Sending files over http

    You need to use HTTP content headers. For instance, a html page has a content header that looks like:
    Content-type: text/html
    For an image, you would use:
    Content-type: image/gif
    You could replace GIF with the other images formats, of course. I am also making a web server. But mine doesn't use headers either. I'm currently trying to implement sending content headers. Once I get it working, I'll show it to you.

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