I am currently trying to update a script on a page. The site
was accessible to CFHTTP as recently as a few months ago, but the
site changed its login system and since then we have not been able
to do this login.
Here is what I have found, I am hoping that someone will
recognize this and let me know what their solutions were.
1. When I try to log into the site using cfhttp, I am
redirected to a different page called "page not available".
2. When I login using my browser, I can access just fine,
3. ...When I login with fiddler2 open, I get a bad
certificate error, and the certificate says the issuer is:
Does anyone have any experience with this? All
suggestions/solutions would be greatly appreciated.
Just guessing here, but their site may be
blocking/redirecting HTTP calls that don't appear to be browsers.
So, with cfhttp, you can "pretend" you're a browser by passing in
browser-like headers with something like the following:
Here I am on the posting page<br />
method="POST" resolveurl="yes" throwonerror="yes"
<CFHTTPPARAM type="HEADER" name="User-Agent"
value="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)">
<CFHTTPPARAM type="HEADER" name="Connection"
<CFHTTPPARAM type="HEADER" name="Cache-Control"
<CFHTTPPARAM type="FORMFIELD" name="test1"
<CFHTTPPARAM type="FORMFIELD" name="test2"