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!
  • Students Click Here

*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

Using Wininet API with vb to perform a "POST" operation

Using Wininet API with vb to perform a "POST" operation

Using Wininet API with vb to perform a "POST" operation

I am trying to upload a file to a web server .Web server has a perl code for uploading the files.I am using "POST" method to send the path of file and other information to the perl code at web server.I tried using Internet transfer controls in vb to perform this function but did not succeed.Now i am trying to use Wininet API to perform this function. The material and examples that i found were using Wininet with C++ and not VB.
As i am facing some problem using it with vb,can someone tell me from where can i get information for using wininet in vb

RE: Using Wininet API with vb to perform a "POST" operation

Easiest way to upload files to a webserver... check out http://www.dougdean.com and look at his EZSiteUpload component, it's an ActiveX component (.dll) you can use in your web project. And, he includes the source code so you can modify it if you need to. BTW - if you don't like his, you can find several others on the web if you poke around some of the popular ASP sites (15seconds.com, activeserverpages.com, asptoday.com, 4guysfromrolla.com, and others).

That's for starters... however, the key to uploading a file to the server is three fold:
1. Make sure you are using the proper form element
<input type=file>
2. Make sure you are using the proper form tags:
<form enctype="multipart/form-data" method="post">
3. Make sure you have something on the server that can parse the binary data from the form and store it on the server's hard drive. That's where an ActiveX dll like the one I referenced above comes into play or maybe that's what your PERL script does.

Anyway, this doesn't answer your question directly but I hope it helps you meet your goals.

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