cancel
Showing results for 
Search instead for 
Did you mean: 

Access to KM document via HTTP Post method

Former Member
0 Kudos

We have a HTM file hosted in KM which is accessible via the path /irj/go/km/docs/documents/<htm file>. The url is used in a HTTP POST method which basically does a SSO using headervariableloginmodule.

When the post is performed the HTM file does not load although the authentication is successful. The HTTP response from the server is "400 - bad request". In the same session if the URL is reloaded then HTTP GET method is used and the file is retrieved successfully.

Is there any way to allow document access in HTTP POST method so that the user need not reload the page even after successful authentication?

The SSO is triggered in a legacy portal via a JSP. The JSP is executed on the server and the response is redirected to the client so we will not be able to make any changes in the method without affecting the user experience.

We are on EP 701.13.

Thanks,

Prashanth

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Maybe you need to first understand the difference between HTTP GET and HTTP POST. See the attached links for details.

http://www.w3schools.com/tags/ref_httpmethods.asp

http://stackoverflow.com/questions/2080863/what-is-the-difference-between-a-http-get-and-http-post-a...

You could implement a portal component that parses the POST and then retrieves the document based on the parsed form field.

Former Member
0 Kudos

I understand the difference between the two methods. My query was more around how the methods are handled in standard EP environment.

Note that content from PCD (/irj/portal) is able to respond to both GET and POST in a similar fashion however, content from KM (/irj/go/km/docs/documents) has a different behavior.

For KM document access, I was hoping to obtain a configuration tweak that would enable the modules that would typically handle POST requests thus addressing the issue.