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
Printable View
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
You need HTTP POST, not PUT, to submit a form. I think PUT is only for servers with the FrontPage Extensions.
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
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.
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
You'll have to look into your web server documentation to see if it supports the PUT command.