MrGibbage Super User
Joined: October 23 2006 Location: United States
Online Status: Offline Posts: 513
|
Posted: May 01 2012 at 08:16 | IP Logged
|
|
|
I am doing some testing with an android java client connecting to the PH webserver and I am seeing some
strange things. One, I cannot get the server to return any codes other than 200/OK (cookie authentication).
Even when I pass in the wrong UN/PW, I still get a 200/OK. I would have expected a 400 or 401 code. Right
now, the only way I know to test if a UN/PW pair is correct is to try and run a formula such as
ph_getversion() and check the response for "redirect". I think it would be very nice if there was a built in
"formula" that work on all PH systems to return whether or not the credentials were valid. Of course, it
couldn't be a formula be cause it would require valid credentials to run in the first place, so maybe a
standard url that can be used for authentication checking? Even with the test formula I am using,
ph_getversion(), I don't know what the valid response should be (2.1.4 for now), but I do know what it
SHOULDN'T be.
I haven't started http regular authentication testing yet, nor the socket server authentication, but I would
also hope for similar features there.
__________________ Skip
|