Solved

Java Server Faces parameter pass?

Posted on 2016-11-16
6
62 Views
Last Modified: 2017-01-25
Hello Experts!

General Scenario:  (and I can't provide exact details thanks to an nda)

I have an application that needs to access a website written in Java Server Faces.  The application supports several end users, and the goal is for the application to grab the users credentials, and log into the website to download their documents and then log off (all automated).  Is there a way to look at the website code to see what the parameters are to pass and then just pass the parameters in the URL.  I looked at the code and I see that Javascript is being used (maybe in the login function?)

Can someone point me in the right direction to go about getting this information?  Tell me how *you* would solve this issue?


-Fox
0
Comment
Question by:the_b1ackfox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 41890685
with chrome do Chrome Menu -> More Tools -> Developer Tools
click on network tab
do a login and click on left on the line you see appear when you click on the login, one the right go on header tab and locate your parameters name
0
 
LVL 9

Author Comment

by:the_b1ackfox
ID: 41891745
I'll give that a try this weekend.  Once I have the parameters is there a particular format to put them into the url string?

https://www.somedumbsite.jsf/?userid=bob,password=1234
0
 
LVL 82

Expert Comment

by:leakim971
ID: 41891868
no, this format use the GET method to post, so you see parameters in the url.
that's why I asked you to check th header, if you it's a POST, check the header to see the parameters name, maybe more than user/password
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Author Comment

by:the_b1ackfox
ID: 41893602
OK, so I couldn't wait until the weekend.  :)  I was able to get the parameters based upon your suggestions!!!  Thank you so much!
1
 
LVL 82

Expert Comment

by:leakim971
ID: 41893622
nice, don't forget to close the question, thanks
0
 
LVL 9

Author Closing Comment

by:the_b1ackfox
ID: 41906379
Thank you for the information, You helped us get pretty far into our project!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn different types of Android Layout and some basics of an Android App.
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question