小编Ric*_*ich的帖子

ColdFusion CFHTTP Post正在做第二个GET请求

我正在使用ColdFusion 8.

我正在向远程服务器发送CFHTTP帖子.远程站点查看了他们的日志,他们说我的代码正在执行POST,然后立即执行第二个GET请求.

这是我的代码(URL已被更改):

<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#">
Run Code Online (Sandbox Code Playgroud)

有没有人知道为什么他们在我的POST后立即看到第二个GET请求?这会破坏会话而不是因为这个而正确地翻页(我们认为)

我绝对不会做GET,我只做一个POST.

谢谢,

丰富

coldfusion post get cfhttp

3
推荐指数
1
解决办法
2491
查看次数

标签 统计

cfhttp ×1

coldfusion ×1

get ×1

post ×1