Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Upload file to a URL with Password and Username

Posted on 2010-09-21
1
Medium Priority
?
380 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 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

916 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