473,387 Members | 1,925 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MSXML2.XMLHTTP username and password encoding

I'm working on a project where we have to call up a URL from a Java
servlet - the only sample call we have is some Javascript that used an
MSXML2.XMLHTTP object to send the request, using a username and
password.

How is the username and password actually passed to the target web
server for the request (via MSXML2.XMLHTTP)? That is, are they sent
as HTTP header fields? Are they sent as query parameters? Are they
sent as part of the URL? Are they encoded or encrypted?

I'e already spent a fair amount of time trying to find this out in the
doc and on the 'net, but I'm not finding this level of detail.

Thanks for any insight.

Regards,
Rick
Nov 12 '05 #1
4 10453
Hi Rick,

The MSXML2.XMLHTTP is the same as Http. The username and password are in
the HTTP header fields. Whether the username and password are encrypted
depends on the server. If it uses BASIC authentication, they're not
encrypted.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 12 '05 #2
Hi Kevin-
Thanks for the reply - do you know the names of the HTTP
header fields?

Thanks again,
Regards,
Rick

-----Original Message-----
Hi Rick,

The MSXML2.XMLHTTP is the same as Http. The username and password are inthe HTTP header fields. Whether the username and password are encrypteddepends on the server. If it uses BASIC authentication, they're notencrypted.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers norights."

.

Nov 12 '05 #3


rlr1031 wrote:
I'm working on a project where we have to call up a URL from a Java
servlet - the only sample call we have is some Javascript that used an
MSXML2.XMLHTTP object to send the request, using a username and
password.

How is the username and password actually passed to the target web
server for the request (via MSXML2.XMLHTTP)? That is, are they sent
as HTTP header fields? Are they sent as query parameters? Are they
sent as part of the URL? Are they encoded or encrypted?

I'e already spent a fair amount of time trying to find this out in the
doc and on the 'net, but I'm not finding this level of detail.


Look at
ftp://ftp.isi.edu/in-notes/rfc2617.txt
it describes HTTP authentication, basically when a page is requested and
authentication is required the server sends a
401 Unauthrorized
WWW-Autenticate: scheme params
and the client is supposed to answer with
Authorization: scheme credentials
where it depends on the scheme whether password are encrypted.
--

Martin Honnen
http://JavaScript.FAQTs.com/

Nov 12 '05 #4
Hi Rick,

Please try to check the following link for reference:

http://msdn.microsoft.com/library/de...us/act/htm/act
ml_ref_href.asp

Happy New Year!

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

Nov 12 '05 #5

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

Similar topics

3
by: Dan Sikorsky | last post by:
Uploading from browser to server using Msxml2.XMLHTTP takes a long time about 15 minutes for a 1.5MB file at 37.2Kbps, although it does get there. Is there anyway to speed things up? here's the...
5
by: RK | last post by:
I am getting the "HTTP /1.1 405 - method not allowed" error when I am sending XML string over Msxml2.XMLHTTP object. I am sending data in POST, also passing querystring variable and here is the...
0
by: | last post by:
///======================in C# writeSession.aspx ///Session("loginID") == "tmp"; MSXML2.XMLHTTPClass xmlHttp = new XMLHTTPClass(); try { XmlDocument xmlDom = new XmlDocument();...
1
by: Raúl Martín | last post by:
I´ve a function in asp that run correctly but If I tried to change it forasp.net in asp: xmlHTTP = CreateObject("Microsoft.XMLHTTP") And I thought to use this sentence for asp.net but the...
2
by: Maris Janis Vasilevskis | last post by:
Hi, Is it possible to force HttpWebRequest to do exactly (not approximately) the same as MSXML2.ServerXMLHTTP does? More details. I port JScript to JScript.NET I have a server (ASP invoking...
3
by: BjörnHolmberg | last post by:
I'm trying to consume a WS from Excel (Office 98), seems that I can't send arguments into the WS. In order to pinpoint the problem I've written the following application i C# and VB6. It reproduces...
11
by: Kevin O'Brien | last post by:
Hello, I am creating a sign on screen for my application in which I want to store the username and password in a database table. I was thinking of putting a combo box connected to the database...
2
by: noOby | last post by:
Hi developers, currently i'm doing a school project and i am stuck on MSXML2.XMLHTTP conversion from vb code to c#. Below is the vb Coding that i need to convert to C# Dim sUrl As String ...
2
by: Dave | last post by:
I am running the following code and I get an error: Set xmlHttp = Server.CreateObject("MSXML2.XMLHTTP.3.0") xmlHttp.Open "Get", URLToRSS, false xmlHttp.Send RSSXML = xmlHttp.ResponseText The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...

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.