/    Sign up×
Community /Pin to ProfileBookmark

Passing username/password with XMLHTTP object gives error!

I’m getting an error when sending XMLHTTP requests with the final two parameters of the request (username, password). It seems to work in IE7, but gives an error on some service packs of IE6. The error is “Invalid Syntax” and I’m assuming it’s because this version of IE doesn’t support the final two params.

Does anyone have any info, links, or experience with this issue? How does IE handle security if it doesn’t accept the username/password params!? We’re rolling out soon and need help ASAP!!!

My only thoughts are to catch the error when it happens and then send the open without the params, but that’s ugly. I’m kinda new to JS so if you could even show how to test for an objects parameters that might help.

EXAMPLE THAT BREAKS:
myRequest.open(“CHECKOUT”, sURL, true, sUser, sPass)
myRequest.send()

EXAMPLE THAT WORKS:
myRequest.open(“CHECKOUT”, sURL, true)
myRequest.send()

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Jan 05.2007 — I have never heard of a Method called CHECKOUT, what is the reason you are passing a user name and password, never seen anyone actually use those params since well, it is not secure. LOL

Eric
Copy linkTweet thisAlerts:
@Khalid_AliJan 05.2007 — and the add that to your comments Alien51, However, I'd like to add that W3C only recomends that the following methods are implemented by browser vendors

GET, POST, PUT, DELETE and HEAD

Even the implementation of those is prety sketchy except POST and GET...so wonder why use the checkout..:-)
×

Success!

Help @rsouthon spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.30,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...