Results 1 to 6 of 6

Thread: upload using winsock

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    13

    upload using winsock

    i am using wsock32.dll file to create winsock...
    i can download any file from servers using GET method of HTTP but i dont know how to upload files on server??
    can i use HTTP method PUT for that..

    please consider this as urgent..
    thank You
    swati

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You need HTTP POST, not PUT, to submit a form. I think PUT is only for servers with the FrontPage Extensions.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    13
    i dont want to submit any form... i want to upload a file onto the server...

    i guess u took my query in a wrong sense...
    anyways,
    please reply soon..
    thank You!!
    swati

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Unless the server has the FP extensions set up on it, you can't upload a file directly thru HTTP. You'll have to use FTP, or Windows sharing, or whatever is set up on the web server.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    13
    but i can do SCP(unix command) and upload a file onto our server...
    i want to upload file only on my server... cause while SCPing any file it asks me for username and password...
    so can u tell me how does this scp work.. i mean it must be using some http request na??
    anyhow,
    can u tell me where to use PUT method then??
    actually downloading gives no problems when i implement winsock in VB...
    and if i can do SCP and upload any file on my server then by using winsock in VB how can i upload a file ??
    please reply soon..
    swati

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    You'll have to look into your web server documentation to see if it supports the PUT command.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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