Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/268.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Curl过账至ROR表单,httpcode 500_Php_Ruby On Rails_Post_Curl - Fatal编程技术网

Php Curl过账至ROR表单,httpcode 500

Php Curl过账至ROR表单,httpcode 500,php,ruby-on-rails,post,curl,Php,Ruby On Rails,Post,Curl,我正在写一个脚本来发布到一个网站上,据我猜测,它是基于ruby的,帖子数组是相同的,(正确的标记也被选中)我一直得到错误 很抱歉,出了点问题。我们已经接到通知 问题,我们将很快查看它 Post数组是相同的,它们的数组 Array ( [utf8] => 1 [authenticity_token] => BojCrjaXZUmEaSsqIG5ffXecXoatGE3RLz9a6rICWfs= [classified_ad] => Array

我正在写一个脚本来发布到一个网站上,据我猜测,它是基于ruby的,帖子数组是相同的,(正确的标记也被选中)我一直得到错误

很抱歉,出了点问题。我们已经接到通知 问题,我们将很快查看它

Post数组是相同的,它们的数组

Array
(
    [utf8] => 1
    [authenticity_token] => BojCrjaXZUmEaSsqIG5ffXecXoatGE3RLz9a6rICWfs=
    [classified_ad] => Array
        (
            [search_tag] => Melaka, Malaysia
            [listing] => For Sale
            [category] => House
            [furnishing] => Semi-Furnished
            [description] => Beautiful house and beautiful location!
            [size] => 234
            [la] => 0
            [price] => 345123
            [psf] => 0
            [package] => Basic
        )

    [form] => for_sale
    [x] => 62
    [y] => 6
)
我的阵列

Array
(
    [utf8] => 1
    [authenticity_token] => XcJzGXCLAuOWTlJWggVywmR0UtXwoh8YhwjoZAjySxA=
    [classified_ad] => Array
        (
            [search_tag] => Melaka, Malaysia
            [listing] => For Sale
            [category] => House
            [furnishing] => Semi-Furnished
            [description] => Beautiful house and beautiful location!
            [size] => 234
            [la] => 0
            [price] => 345123
            [psf] => 0
            [package] => Basic
        )

    [form] => for_sale
    [x] => 61
    [y] => 8
)

不知道发生了什么,有人有什么想法吗?被困了几个小时,我正在用PHP编写这个脚本

确保你也在发布cookie,可能令牌保存在会话中,并且你没有提供会话id,所以令牌无法比较。事实是,cookie在那里,因为登录工作正常。。隐马尔可夫模型