Solved

Upload file to a URL with Password and Username

Posted on 2010-09-21
1
367 Views
Last Modified: 2012-05-10
Hi

I currently have a form that contains an active-x control which uploads a file to a URL which has a username and password embedded in it.

I was using :
strURL = "https://username:password@organisation/form.pl"

WSIEBrowser.Navigate strURL, , , bFormData, "Content-Type: multipart/form-data; boundary=" + strBoundary + vbCrLf

If I use Google Chrome and manually enter the URL (with username and PW embeded) all is fine.  If I use IE and try the same then I get an error.  For IE I have to modify two registry keys to be able to manually navigate to the URL.  Hence I believe the problem to be the way Windows handles the URL with embebed security details.  

I was wondering if there was another way round this?  I don't really want to have to modify registry keys on my client's machines.

In case you are wondering, the file i need to upload will always be of a known name and in a known location.

Many thanks

Kim



0
Comment
Question by:WSIT
1 Comment
 
LVL 65

Accepted Solution

by:
rockiroads earned 500 total points
ID: 33731966
well as you figured out already it is not supported in ie http://support.microsoft.com/kb/834489

there is a code workaround as suggested in that link but not sure if it can work in your case

regardng registry entries, sometimes you have to make changes in order for your app to work. I dont believe its that harmful. ms did it as a security precaution which is understandable. You should be able to code it in your app I guess, the tweking of the reg keys that is.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now