Solved

Upload file to a URL with Password and Username

Posted on 2010-09-21
1
369 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

816 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

9 Experts available now in Live!

Get 1:1 Help Now