Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / November 2007



Tip: Looking for answers? Try searching our database.

Issues with CFHTTP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
coderWil - 20 Nov 2007 21:48 GMT
Hello all,

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, unless....
3.  ...When I login with fiddler2 open, I get a bad certificate error, and the
certificate says the issuer is: "DO_NOT_TRUST_fiddlerRoot"

Does anyone have any experience with this?  All suggestions/solutions would be
greatly appreciated.

William
aqlong_gmail - 30 Nov 2007 21:30 GMT
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:

<body>
Here I am on the posting page<br />
<CFHTTP url="http://some_domain_here/form_ok.cfm" method="POST"
resolveurl="yes" throwonerror="yes" redirect="yes">
<CFHTTPPARAM type="HEADER" name="User-Agent" value="Mozilla/4.0 (compatible;
MSIE 6.0; Windows NT 5.0)">
<CFHTTPPARAM type="HEADER" name="Connection" value="Keep-Alive">
<CFHTTPPARAM type="HEADER" name="Cache-Control" value="no-cache">
<CFHTTPPARAM type="FORMFIELD" name="test1" value="Hello">
<CFHTTPPARAM type="FORMFIELD" name="test2" value="World">
</CFHTTP>
</body>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.