复制为cURL不会在Mac Terminal中提交表单

我正在尝试使用cURL提交表单,并且我发现Chrome中的这个惊人选项“copy as cURL”。 它确实在我自己的网站上工作 - 我只在我的Mac Terminal上粘贴了所有内容,并收到了表单。

但现在我在这个网站上试用它:https://www.vigneron-independant.com/contact-vigneron?vigneron=10715

而我的Mac终端似乎只是“获取”html代码而不是提交表单 - 并且我的邮箱中没有发送确认信息,应该有。 任何想法我在这里做错了吗? 我只是在学习cURL!

这是我从Chrome获得的cURL(我也试过用Firefox获得的另一个)。 在我的终端中,我只能得到html代码:

curl'MYLINK'-X -POST -H'origin:DOMAIN'-H'accept-encoding:gzip,deflate,br'-H'accept-language:fr-FR,fr; q = 0.8,en-US; q = 0.6,en; q = 0.4' - 压缩-H'升级不安全请求:1'-H'用户代理:Mozilla / 5.0(Macintosh; Intel Mac OS X 10_10_5)AppleWebKit / 537.36(KHTML,像Gecko )Chrome / 61.0.3163.100 Safari / 537.36'-H'content-type:multipart / form-data; border = ---- WebKitFormBoundarySdFTBBgUwnJBiE8i'-H'accept:text / html,application / xhtml + xml,application / xml; q = 0.9,image / webp,image / apng,/; q = 0.8'-H'cache- control:max-age = 0'-H'权限:www.vigneron-independant.com'-H'cookie:has_js = 1; _ga = GA1.2.173947934.1507629285; _gid = GA1.2.1021915094.1507629285'-H'referer:MYLINK'--data-binary $' r nContent-Disposition:form-data; name =“submitted [prenom]” r n r nJohn ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r nContent-Disposition:form-data; name =“submitted [nom]” r n r nDoe ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r nContent-Disposition:form-data; name =“submitted [adresse_e_mail]” r n r nmymail@gmail.com ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r nContent-Disposition:form-data; name =“submitted [objet_de_votre_demande]” r n r nAutre demande d'information ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r nContent-Disposition:form-data; name =“submitted [message]” r n r 个人文本在这里(很长的一个) r n ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r n r nContent-Disposition:form-data; name =“details [sid]” r n r n r n ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r n r nContent-Disposition:form-data; name =“details [page_num]” r n r n1 r n ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r n r nContent-Disposition:form-data; name =“details [page_count]” r n r n1 r n ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r n r nContent-Disposition:form-data; name =“details [finished]” r n r n0 r n ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r n r nContent-Disposition:form-data; name =“form_build_id” r n r nform-N1o-3pJb65NLGhUDdxjXNuDuJFa4qbKOUBxk2JEFwr0 r n ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r n r nContent-Disposition:form-data; name =“form_id” r n r nwebform_client_form_52148 r n ---- WebKitFormBoundarySdFTBBgUwnJBiE8i r n r nContent-Disposition:form-data; NAME = “运算为” r n r nEnvoyer r n ---- WebKitFormBoundarySdFTBBgUwnJBiE8i - r N”

链接地址: http://www.djcxy.com/p/48797.html

上一篇: Copy as cURL doesn't submit form in Mac Terminal

下一篇: php curl + post + multipart/form