I want to log in (https://pacer.login.uscourts.gov/csologin/login.jsf) using CFHTTP.Using Http Live Header we have collect all required parameter and post to the login url.Here is my Example Code:
<cfhttp url="#arguments.login_url#" method="post" timeout="30" redirect="no" resolveURL="yes" useragent="Mozilla/5.0">
<cfhttpparam name="login" value="login" type="formField">
<cfhttpparam name="login:loginName"value="xxxx"type="formField">
<cfhttpparam name="login:password" value="xxxx" type="formField">
<cfhttpparam name="login:clientCode" value="" type="formField">
<cfhttpparam name="login:Aj_idt206" value="" type="formField">
<cfhttpparam type="formField" name="javax.faces.ViewState" value="stateless">
</cfhttp>
After trying above code we have get same login page content.How to log in above Mention Url and collected all cookies,session after login. Anyone have any ideas or any clue or any other method in CF?
thanks
Atu
I think you first have to do a
get
request to start a new session and then do thepost
using theJSESSIONID
you got from theget
request: