• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Going nuts with CFHTTP Problem

New Here ,
Mar 03, 2007 Mar 03, 2007

Copy link to clipboard

Copied

First off any help would be sincerely appreciated. I've spent 4 hours straight trying to figure out this problem.

I am trying to collect information from an external jsp server. When I send a request to the home page, I have no problems.

When I send a request to the second page which requires a bunch of form information, I am able to connect. This second page does create a session and send out a cookie.

when I try to connect to the third page which requires an existing session and some cookie parameters I get a connection failed.
Something about the way I am sending the session and cookies isn't working.
Here is my code for the request generating an error:
jid, ehvid1 and ecid1 are the values that come when I get the header info from the second page

notice that after the http://somepage.jsp there is a ";" I the semicolon this because that's what appears when I go to the page in my browser.

<cfhttp url=" http://somepage.jsp;JSESSIONID=#jid#" method="post" redirect="YES" resolveurl="yes" throwonerror="no" >

<cfhttpparam name="JSESSIONID" value="#jid#" type="cookie">
<cfhttpparam name="ehiVisitor" value="#ehvid1#" type="cookie">
<cfhttpparam name="ehiCookie" value="#ehcid1#" type="cookie">
<cfhttpparam name="ehiVisitor" value="#ehvid2#" type="cookie">
<cfhttpparam name="ehiCookie" value="#ehcid2#" type="cookie">

</cfhttp>

If you don't know why I get the connection failed error can you suggest other jsp server that would require session and/or cookie information? This would help because I could test my code on other servers.




TOPICS
Advanced techniques

Views

597

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 03, 2007 Mar 03, 2007

Copy link to clipboard

Copied

I did notice that I should be posting to https and not http. I changed the port to 443 and changed the url to https but still get the error. The ssl is a verisign cert.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Mar 04, 2007 Mar 04, 2007

Copy link to clipboard

Copied

Amosl,

We recently had an issue with CFMX7 and SSL. CFMX7 cfhttp doesn't work with SSLv3. We purchased CFX_HTTP5. That solved the problem. It's lightning fast compared to cfhttp. You can also do multiple asynchronous http calls.
Hope this helps.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Mar 05, 2007 Mar 05, 2007

Copy link to clipboard

Copied

LATEST
You may need to add a couple custom headers to your SSL post in order to get it to work in ColdFusion. Try adding the following <cfhttpparam> tags to your CFHTTP call:

<cfhttpparam type="Header" name="Accept-Encoding" value="deflate;q=0">
<cfhttpparam type="Header" name="TE" value="deflate;q=0">

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation