Hi.

I have been using Orion's basic authentication to secure parts of our
website without any problems.
(See
http://kb.atlassian.com/content/atlassian/howto/securingdirectory.html):

We are now going to build the same functionality for WAP but the basic
authentication doesn't work as expected.
I think that the problem is that the server (Orion) sets the HTTP header
Connection to 'Close' but I'm not sure.
When I use Apache and basic authentication everyhing works fine.

FYI:
If I connect manually to Orion and move the keep-alive header last (as
Explorer does) Orion doesn't close the connection...

Does anyone know what's going on (since I can't find a logical
explaination)?

Regards

Stefan Klåvus

Below are some "spy traces" of the HTTP communication:

::::::::::::::::::ORION & Explorer:::::::::::::::::::

CONNECT FROM: 127.0.0.1/127.0.0.1 ---> localhost:8085
C 01>   GET /wap/do.member.information.viewUserSubscriptions HTTP/1.1
C 01>   Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, ap
C 01>   plication/vnd.ms-excel, application/msword, application/vnd.ms-
C 01>   powerpoint, */*
C 01>   Accept-Language: sv
C 01>   Accept-Encoding: gzip, deflate
C 01>   User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
C 01>
C 01>   Host: localhost:8088
C 01>   Connection: Keep-Alive
C 01>
S 01>   HTTP/1.1 401 Unauthorized
S 01>   Date: Tue, 29 Jan 2002 09:57:21 GMT
S 01>   Server: Orion/1.5.2
S 01>   Content-Length: 95
S 01>   Connection: Keep-Alive
S 01>   Keep-Alive: timeout=15, max=100
S 01>   Content-Type: text/html
S 01>   WWW-Authenticate: Basic realm="publicwap"
S 01>
S 01>   <HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD><BODY><H1>401
S 01>    Unauthorized</H1></BODY></HTML>C 01> CONNECTION CLOSED
CONNECT FROM: 127.0.0.1/127.0.0.1 ---> localhost:8085
C 02>   GET /wap/do.member.information.viewUserSubscriptions HTTP/1.1
C 02>   Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, ap
C 02>   plication/vnd.ms-excel, application/msword, application/vnd.ms-
C 02>   powerpoint, */*
C 02>   Accept-Language: sv
C 02>   Accept-Encoding: gzip, deflate
C 02>   User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
C 02>
C 02>   Host: localhost:8088
C 02>   Connection: Keep-Alive
C 02>   Authorization: Basic NDY3MDIxMDk0MTE6
C 02>
S 01>   HTTP/1.1 200 OK

:::::::::::::::::: Orion & Toolkit :::::::::::::::::::::::

CONNECT FROM: 127.0.0.1/127.0.0.1 ---> localhost:8085
C 06>   GET /wap/do.member.information.viewUserSubscriptions HTTP/1.1
C 06>   Connection: keep-alive
C 06>   Date: Tue, 29 Jan 2002 11:14:54 GMT
C 06>   Accept: text/vnd.wap.wml,text/vnd.wap.wmlscript,application/vnd
C 06>   .wap.wmlc,application/vnd.wap.wmlscriptc,text/x-vCard,text/x-vc
C 06>   ard,text/x-vcal,text/x-vCalendar,text/x-vcalendar,image/vnd.wap
C 06>   .wbmp,application/vnd.wap.wbxml,application/vnd.wap.multipart.m
C 06>   ixed,multipart/mixed,image/gif,application/vnd.wap.hashed-certi
C 06>   ficate,application/vnd.wap.signed-certificate,application/vnd.w
C 06>   ap.cert-response,image/jpeg
C 06>   Accept-Charset: US-ASCII, ISO-8859-1, ISO-8859-2, ISO-8859-3, I
C 06>   SO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-
C 06>   8859-9, Shift_JIS, EUC-JP, ISO-2022-JP, GB2312, Big5, UTF-7, UT
C 06>   F-8, UTF-16, ISO-10646-UCS-2
C 06>   Accept-Language: en
C 06>   Host: localhost:8086
C 06>   User-Agent: Nokia-MIT-Browser/3.0
C 06>
S 06>   HTTP/1.1 401 Unauthorized
S 06>   Date: Tue, 29 Jan 2002 11:14:53 GMT
S 06>   Server: Orion/1.5.2
S 06>   Content-Length: 95
S 06>   Connection: Close
S 06>   Content-Type: text/html
S 06>   WWW-Authenticate: Basic realm="publicwap"
S 06>
S 06>   <HTML><HEAD><TITLE>401 Unauthorized</TITLE></HEAD><BODY><H1>401
S 06>    Unauthorized</H1></BODY></HTML>
C 06> CONNECTION CLOSED

::::::::::::::::::: Apache & Toolkit :::::::::::::

CONNECT FROM: 127.0.0.1/127.0.0.1 ---> x.x.x.x:80
C 00>   GET /web/admin/bb/wml/ HTTP/1.1
C 00>   Connection: keep-alive
C 00>   Date: Tue, 29 Jan 2002 09:36:12 GMT
C 00>   Accept: text/vnd.wap.wml,text/vnd.wap.wmlscript,application/vnd
C 00>   .wap.wmlc,application/vnd.wap.wmlscriptc,text/x-vCard,text/x-vc
C 00>   ard,text/x-vcal,text/x-vCalendar,text/x-vcalendar,image/vnd.wap
C 00>   .wbmp,application/vnd.wap.wbxml,application/vnd.wap.multipart.m
C 00>   ixed,multipart/mixed,image/gif,application/vnd.wap.hashed-certi
C 00>   ficate,application/vnd.wap.signed-certificate,application/vnd.w
C 00>   ap.cert-response,image/jpeg
C 00>   Accept-Charset: US-ASCII, ISO-8859-1, ISO-8859-2, ISO-8859-3, I
C 00>   SO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-
C 00>   8859-9, Shift_JIS, EUC-JP, ISO-2022-JP, GB2312, Big5, UTF-7, UT
C 00>   F-8, UTF-16, ISO-10646-UCS-2
C 00>   Accept-Language: en
C 00>   Host: localhost:8087
C 00>   User-Agent: Nokia-MIT-Browser/3.0
C 00>
S 00>   HTTP/1.1 401 Authorization Required
S 00>   Date: Tue, 29 Jan 2002 09:37:16 GMT
S 00>   Server: Apache/1.3.12 (Unix) ApacheJServ/1.1.2 PHP/4.0.1pl2
S 00>   WWW-Authenticate: Basic realm="bf"
S 00>   Keep-Alive: timeout=15, max=100
S 00>   Connection: Keep-Alive
S 00>   Transfer-Encoding: chunked
S 00>   Content-Type: text/html; charset=iso-8859-1
S 00>
S 00>   1d3
S 00>   <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
S 00>   <HTML><HEAD>
S 00>   <TITLE>401 Authorization Required</TITLE>
S 00>   </HEAD><BODY>
S 00>   <H1>Authorization Required</H1>
S 00>   This server could not verify that you
S 00>   are authorized to access the document
S 00>   requested.  Either you supplied the wrong
S 00>   credentials (e.g., bad password), or your
S 00>   browser doesn't understand how to supply
S 00>   the credentials required.<P>
S 00>   <HR>
S 00>   <ADDRESS>Apache/1.3.12 Server at 62.119.41.162 Port 80</ADDRESS
S 00>   >
S 00>   </BODY></HTML>
S 00>
S 00>   0
S 00>
CONNECT FROM: 127.0.0.1/127.0.0.1 ---> x.x.x.x:80
C 01>   GET /web/admin/bb/wml/ HTTP/1.1
C 01>   Connection: keep-alive
C 01>   Date: Tue, 29 Jan 2002 09:36:12 GMT
C 01>   Accept: text/vnd.wap.wml,text/vnd.wap.wmlscript,application/vnd
C 01>   .wap.wmlc,application/vnd.wap.wmlscriptc,text/x-vCard,text/x-vc
C 01>   ard,text/x-vcal,text/x-vCalendar,text/x-vcalendar,image/vnd.wap
C 01>   .wbmp,application/vnd.wap.wbxml,application/vnd.wap.multipart.m
C 01>   ixed,multipart/mixed,image/gif,application/vnd.wap.hashed-certi
C 01>   ficate,application/vnd.wap.signed-certificate,application/vnd.w
C 01>   ap.cert-response,image/jpeg
C 01>   Accept-Charset: US-ASCII, ISO-8859-1, ISO-8859-2, ISO-8859-3, I
C 01>   SO-8859-4, ISO-8859-5, ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-
C 01>   8859-9, Shift_JIS, EUC-JP, ISO-2022-JP, GB2312, Big5, UTF-7, UT
C 01>   F-8, UTF-16, ISO-10646-UCS-2
C 01>   Accept-Language: en
C 01>   Authorization: Basic Ymx1ZWZhY3Rvcnk6d2VubmVyZ3Jlbg==
C 01>   Host: localhost:8087
C 01>   User-Agent: Nokia-MIT-Browser/3.0
C 01>
S 01>   HTTP/1.1 200 OK
====================================

Reply via email to