Skip to Content

Java based HTTP adapter – How to pass username and password in query string?

If you have started using Java based HTTP sender adapter, either you might have spent some time in finding out how to pass user name and password in the query string or you might still be wondering how to pass user name and password in query string.

If you use sap-user and sap-password, you might have noticed that it is not working anymore and you would get authentication error “HTTP/1.1 401 Unauthorized”.

Instead of sap-user, j_username can be used to pass username in query string.

Instead of sap-password, j_password can be used to pass password in query string.

The url should look like


Additional details on Java based HTTP adapter test tool are available at PI 7.30 HTTP Java Adapter Test Tools.

Additiona details on configuring the Java HTTP sender adapter and URL details are available at AAE – Configuring the Java HTTP Adapter on the Sender Channel.

Caution: You should avoid using this method of authentication in your landscape. This short blog is written just to inform the readers on what parameter names to be used for  user name and password in query string of http client that is sending request to Java HTTP adapter.

1 Comment
You must be Logged on to comment or reply to a post.