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
<cfdump var="#cfhttp#"/>- any clues there? This is going to be trial and error. - Mark A Kruger<cfhttpparam ..>- headers and cookies are just other kinds of resources that are part of an http request. Both HEADER and COOKIE types are supported by cfhttpparam. - Mark A Kruger