473,790 Members | 2,951 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with URL Syntax

I am trying to get a jpg image as follows:

Dim Client As System.Net.WebC lient = New System.Net.WebC lient
Client.Download File("http://root:<password> @192.168.0.99/cgi-bin/video.jpg",
MyFilename)

However I understand that IE no longer supports this 'in-line' presentation
of the username and password strings. Indeed I am getting a "Not Authorized"
error being returned.

Although I'm not using IE directly, are the components (and the security
contraints) of IE still being used in the background?

Has anyone met this before and is there a work around?

Thanks

-Jerry
May 25 '06 #1
2 1257
"Jerry Spence1" <je**********@s omewhere.com> schrieb:
I am trying to get a jpg image as follows:

Dim Client As System.Net.WebC lient = New System.Net.WebC lient
Client.Download File("http://root:<password> @192.168.0.99/cgi-bin/video.jpg",
MyFilename)

However I understand that IE no longer supports this 'in-line'
presentation of the username and password strings. Indeed I am getting a
"Not Authorized" error being returned.
It's nowhere specified that username and password can be embedded inside
HTTP URIs (this does not apply to FTP URIs though), and only some browsers
supported this sort of URIs. However, embedding username and password into
URIs is a very bad idea for security reasons. Instead you may want to check
out the 'WebClient' object's 'Credentials' property which can be used to
pass authentication data to the server.
Although I'm not using IE directly, are the components (and the security
contraints) of IE still being used in the background?


No, 'WebClient' has nothing to do with IE. It was simply IE which provided
functionality which was not standard compliant and insecure and has been
abandoned for this reason.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

May 25 '06 #2

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:%2******** ********@TK2MSF TNGP05.phx.gbl. ..
"Jerry Spence1" <je**********@s omewhere.com> schrieb:
I am trying to get a jpg image as follows:

Dim Client As System.Net.WebC lient = New System.Net.WebC lient
Client.Download File("http://root:<password> @192.168.0.99/cgi-bin/video.jpg",
MyFilename)

However I understand that IE no longer supports this 'in-line'
presentation of the username and password strings. Indeed I am getting a
"Not Authorized" error being returned.


It's nowhere specified that username and password can be embedded inside
HTTP URIs (this does not apply to FTP URIs though), and only some browsers
supported this sort of URIs. However, embedding username and password
into URIs is a very bad idea for security reasons. Instead you may want
to check out the 'WebClient' object's 'Credentials' property which can be
used to pass authentication data to the server.
Although I'm not using IE directly, are the components (and the security
contraints) of IE still being used in the background?


No, 'WebClient' has nothing to do with IE. It was simply IE which
provided functionality which was not standard compliant and insecure and
has been abandoned for this reason.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


Credentials worked a treat. Thank you so much!

-Jerry
May 25 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2565
by: Blah Blah | last post by:
i just thought i'd shoot out a quick email on problems i've been having with utf-8 in moving from 4.1.0 to 4.1.1. (please note that because i am using UTF-8 as my default character set, i compiled from source rather than using a premade binary) i know that i'm working with alpha software - this is more of a warning/sharing of knowledge than a complaint. BASIC ISSUE: i am unable to use UTF-8 with mysql 4.1.1 and connector/j 3.0.9.
6
7138
by: Andy | last post by:
Hello, I am having many problems with setting up a parameter query that searches by the criteria entered or returns all records if nothing is entered. I have designed an unbound form with 3 fields on it: Date (DateSpan1 and DateSpan2), Originator, and GroupName. I have added a button that triggers a query and uses those fields as its parameter criteria to populate a form. The user must be allowed to either enter all of the
4
1412
by: Lafer | last post by:
Hello, I am attempting to write a terminal interface program using PowerPC Assembly/C, where I am using an integer-to-ASCII conversion algorithm. Unfortunately, I have run into some difficulties that seem to deal with the syntax/character types that am I using. Below is a segment of my code which is intended to convert an integer to an array of ASCII digits: > > char * inttoascii(int val)
2
1449
by: Rick Strahl [MVP] | last post by:
I seem to have problems when working with large Windows Forms files. What happens is that hte editor looses its syntax color highlighting and Intellisense capability on large files. The code works - it compiles and runs fine, but the syntax color highlighting goes away. All formatting blows up too and the editor no longer helps with indentations. Needless to say this is frustrating. If I recompile then color returns but as soon as I...
2
2123
by: Erik | last post by:
Hi Everyone, I'm having real problems compiling some source for eVC4++. The errors I am getting are below: It all seems to be centred around winsock. If I move the afsock.h reference to before my other includes then I get lots of errors like C2011: 'fd_set' : 'struct' type redefinition warning C4005: 'FD_CLR' : macro redefinition which I understand are due to the fact that windows.h is being included in another header file as well as...
5
9653
by: kushmanr | last post by:
hi i am having to problems: interrupt decleration doesn`t compile: void _interrupt _far terminal_isr() ....... _dos_setvect(0xC,terminal_isr) : error C4226: nonstandard extension used : '_far' is an obsolete keyword : error C2061: syntax error : identifier 'terminal_isr'
4
3695
by: Chuck Chopp | last post by:
I have an application that I originally built using Visual Studio .NET 2003 as native C++ . This application includes a template class that was derived from the string class that's part of the C++ STL. Specifically, it extends the class with some additional methods to support changes in encoding as well as sprintf-style in-place formatting. Now, I've been asked to provide a version of the application running on Linux. I'm using GCC as...
7
8722
by: roguefeebo | last post by:
I'm very new to programming so be gentle, :( Essentially what I would like to do is to have a single function to be able to create a dynamic array of pointers to a struct so that I can have a modular menu system up and running. My menus will have several varying numbers of options. This is the first time I've worked with something like this and just can't get it worked out. I've snipped a lot of unnecessary code to this smaller piece so...
0
1495
by: =?Utf-8?B?UnVzdHlfUm9zZXI=?= | last post by:
Hi everyone, I'm having some issues figuring out how to complete certain tasks with a batch file, whether it be not knowing the right syntax or if it can even be accomplished with a batch file. Heres my problem. I work in the IT department at a local bank and we are in the process of deploying new PCs for some of the employees with older work stations. I just finished staging about a dozen of them and in the next month or so we will...
10
1856
by: jodleren | last post by:
Hi I know, that there are a lot of people having problems with orkut.com, errors like "object expected" and named objects missing. When loading the site can generate some 10 errors, and still just leave a blue page - seems like it heavily rely on JS. Still, me and friends having problems and orkut seems just to ignore it. I am sure, that other poeple have problems, and I really wonder what
0
10419
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10201
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10147
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9987
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9023
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7531
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6770
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5424
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4100
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.