Solved

Upload file to a URL with Password and Username

Posted on 2010-09-21
1
375 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

734 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