4 Replies Latest reply on Jun 6, 2009 2:32 AM by BKBK

    CFHTTP Post is doing a second GET request right after

    richpaulCFMX

      I'm doing a CFHTTP Post to a remote server.  The remote site has looked at their logs and they say my code is doing the POST, and then immediately doing a 2nd GET request.

       

      I am using CF8.    Here is my code (the URL has been changed):

       

      <cfhttp url="https://www.theurlofthesite.com" method="POST" port="443" resolveurl="yes" redirect="yes">
      <cfhttpparam type="FORMFIELD" name="type" value="SALES">
      <cfhttpparam type="FORMFIELD" name="account" value="10003">
      <cfhttpparam type="FORMFIELD" name="Submit" value="Submit+Request">
      </cfhttp>

       

      <Cfoutput>#cfhttp.fileContent#</CFOUTPUT>

      <cfdump var="#cfhttp#">

       

       

      Does anyone have any idea why they are seeing a 2nd GET request right after my POST?    it's trashing the session and not returing the page correctly because of this (we think)

       

      I'm definately not doing a GET, I'm only doing the one POST.

       

      thanks,

      Rich