Hi Ralph,

i cc'ed my response to the mailing list. Please join the mailing list and post your inquiries there.

The error response is a "normal" behaviour of Care2x. It does not allow direct http access to a certain page of a module, unless you create a page which overrides this safety feature, or unless you use the hxp access point (or expand the hxp to accomodate the handshake you need).

regards,
elpidio

Ralph Stuber wrote:

Dear Care2x developers,

I am currently trying to access care2x from java code using the apache httpclient lib. My goal is to retrieve a laboratory report via http response.

In order to get access to the laboratory report (which is already created by care2x and can be accessed via firefox browser using the url

http://machineip/care2x/modules/laboratory/labor_test_findings_printpop.php?ntid=false&lang=en&entry_date=&target=admin&subtarget=baclabor&dept_nr=25&batch_nr=30000000&pn=2005000003&pn=2005000003&user_origin=patreg

after having logged into care2x system), I try to log in via http request with this url using the apache httpclient lib:

http://machineip/care2x/main/login.php?userid=username&keyword=password&direction=&pass=check&nointern=1&lang=en&mode=&target=&subtarget=&user_origin=&title=&fwd_nr=&x=0&y=0

A cookie is set with name sid and value of the session id generated by care2x. But instead of being able to access the document after requesting the login uri, I'll always get a document titled "Unauthorized Page Access" and "You have no access rights to open this document!". The response to my login http request lokks like this:

http://machineip/care2x/language/en/lang_en_invalid-access-warning.php

It seems as the login process would fail.

Do you have any hint on how to gain access to care2x system using different programming languages and the http interface? What am I doing wrong?

Thank you in advance, and Cheers from Oldenburg,

Ralph Stuber




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Care2002-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/care2002-developers

Reply via email to