Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

I am building a client application in vb. This application is for up

I am building a client application in vb. This application is for up

I am building a client application in vb. This application is for up


I am building a client application in vb. This application is for uploading a file to a web server. The server has a CGI application which uploads the file from the client. The vb application on the client(which i am suppose to make) communicates with the CGI application on server through http, providing it the path of the file(on the client) to be uploaded. Along with file path it also has to send the comment given by user which is also processed by the CGI application.
I am using internet transfer control in my application. I am using "execute" command and in it i am using "post" method.
codes are as follows

strurl="http:// url / directory /upldfl.cgi"
strformdata = "upfile = c:\dir1\testfile5 note=xyz"
Inet1.Execute strurl, "POST", strformdata, "Content-Type : text/html enctype : multipart/form-data"

Error from the server is "Unknown content type"
I have tested it using "application/PostScript" as content type but again same error is shown.

I have doubts whether
1. strformdata = "upfile = c:\dir1\testfile5 note=xyz" is correct. Do we specify multiple parameters(upfile,note) by puting a space in between.

2. Inet1.Execute strurl, "POST", strformdata, "Content-Type : text/html enctype : multipart/form-data"
Are different parameters(content-type,enctype) in header field seperated by a space.

3. Is the content-type used correct.

This client application has already been made in HTML and is working properly but now it has to be modified by me in vb application. You can see this application in HTML by going to

I tried very hard to find some material and examples on it but could not. The examples provided dont pass multiple parameter and no example for file uploading is provided using internet control tool and http.

Please help me and if possible inform me where i can get this information.



Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close