logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: [Fwd: sending authorized POST requests]: msg#00006

Subject: Re: [Fwd: sending authorized POST requests]
On Fri, 1 Nov 2002, Heikki Toivonen wrote:

> Maybe this is bug http://bugzilla.mozilla.org/show_bug.cgi?id=176051 ?
>
> If not, I would ask on the newsgroup first, and if nobody provides a
> solution within a couple of days file a bug.

thanks for the quick reply. I'm not sure, if it's the same bug, because
this bug does provide the username/password by a dialog. Holger on the
other side, likes having the same username/password as used before the
Editor (provided by the same user, of course) was starting up.  I will try
to write a very short example, before sending it to the newsgroup and
check, what's exactly going on.

christian


 >
> Christian Stocker wrote:
>
> >Hi Heikki
> >
> >We have a problem with HTTP Authentication and XMLHttpRequest and the
> >Bitflux Editor. Below is a short description about the problem. The main
> >idea is, that the user doesn't have to provide username/passwort for
> >http-authentication access again, because he did that provide just
> >shortly before for the same domain.
> >
> >Do you have any idea about that? Shall I file a bug at bugzilla? Or ask
> >at netscape.public.mozilla.xml?
> >
> >Thanks in advance
> >
> >christian
> >
> >-----Forwarded Message-----
> >
> >From: holger krekel <hpk@xxxxxxxxxxxxxxxxx>
> >To: bitflux editor dev <bx-editor-dev@xxxxxxxxxxxxxxxx>
> >Subject: [bx-editor-dev] sending authorized POST requests
> >Date: 01 Nov 2002 20:47:08 +0100
> >
> >Hello,
> >
> >In the transport driver 'http.js' i want the save
> >function to work with authenticated HTTP.  I know
> >that the server sends back a '401 Unauthorized' after
> >(basically) these lines of code:
> >
> >        this.p.open("POST",filename,true );
> >        var xmlstring = BX_getResultXML();
> >        calc = calculateMarkup(xmlstring, true);
> >        this.p.setRequestHeader('Content-Type', 'text/html');
> >        this.p.send(xmlstring, true);
> >
> >Now the browser/javascript is supposed to resent the
> >request with the correct 'Authorization' header.
> >Other GET and POST requests (not initiated from javascript)
> >work fine (before and after the failing one).
> >
> >The server does sent the 401 Unauthorized completly ok.
> >If i *manually* set the Authorization header with
> >
> >    this.p.setRequestHeader('Authorization', 'Basic ...')
> >
> >all works fine.  This is obviously not a proper solution.
> >
> >1) How could i enforce that 'resending' works?
> >
> >2) how could i - from javascript - access the Authentication
> >   information?  I guess for 'security' reasons i can't :-(
> >
> >3) what other solution?
> >
> >thanks for any help (even for pointing me to a site which
> >likely has this information).
> >
> >regards,
> >
> >    holger
> >
> >
>
>

-- 
christian stocker | bitflux GmbH | schöneggstrasse 5 | ch-8004 zurich
phone +41 1 240 56 70 | mobile +41 76 561 88 60 | fax +41 1 240 56 71
http://www.bitflux.ch  |  chregu@xxxxxxxxxx  | gnupg-keyid 0x5CE1DECB


--
bx-editor-dev mailing list
bx-editor-dev@xxxxxxxxxxxxxxxx
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-dev



<Prev in Thread] Current Thread [Next in Thread>