Copy as cURL doesn't submit form in Mac Terminal
I'm trying to submit a form using cURL and I discovered the amazing option in Chrome "copy as cURL". It did work one my own website - I just pasted everything on my Mac Terminal and I received the form.
But now I'm trying it on this website: https://www.vigneron-independant.com/contact-vigneron?vigneron=10715
And my Mac terminal seems to just "get" the html code instead of submitting the form - and there is no sending confirmation in my mailbox, which there should be. Any idea what I'm doing wrong here? I'm just learning cURL!
Here is the cURL I got from Chrome (I also tried another one I got with Firefox). In my terminal, I then only get the html code:
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' --compressed -H 'upgrade-insecure-requests: 1' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36' -H 'content-type: multipart/form-data; boundary=----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 'authority: www.vigneron-independant.com' -H 'cookie: has_js=1; _ga=GA1.2.173947934.1507629285; _gid=GA1.2.1021915094.1507629285' -H 'referer: MYLINK' --data-binary $'rnContent-Disposition: form-data; name="submitted[prenom]"rnrnJohn----WebKitFormBoundarySdFTBBgUwnJBiE8irnContent-Disposition: form-data; name="submitted[nom]"rnrnDoe----WebKitFormBoundarySdFTBBgUwnJBiE8irnContent-Disposition: form-data; name="submitted[adresse_e_mail]"rnrnmymail@gmail.com----WebKitFormBoundarySdFTBBgUwnJBiE8irnContent-Disposition: form-data; name="submitted[objet_de_votre_demande]"rnrnAutre demande d'information----WebKitFormBoundarySdFTBBgUwnJBiE8irnContent-Disposition: form-data; name="submitted[message]"rnrMY TEXT HERE (A VERY LONG ONE)rn----WebKitFormBoundarySdFTBBgUwnJBiE8irnrnContent-Disposition: form-data; name="details[sid]"rnrnrn----WebKitFormBoundarySdFTBBgUwnJBiE8irnrnContent-Disposition: form-data; name="details[page_num]"rnrn1rn----WebKitFormBoundarySdFTBBgUwnJBiE8irnrnContent-Disposition: form-data; name="details[page_count]"rnrn1rn----WebKitFormBoundarySdFTBBgUwnJBiE8irnrnContent-Disposition: form-data; name="details[finished]"rnrn0rn----WebKitFormBoundarySdFTBBgUwnJBiE8irnrnContent-Disposition: form-data; name="form_build_id"rnrnform-N1o-3pJb65NLGhUDdxjXNuDuJFa4qbKOUBxk2JEFwr0rn----WebKitFormBoundarySdFTBBgUwnJBiE8irnrnContent-Disposition: form-data; name="form_id"rnrnwebform_client_form_52148rn----WebKitFormBoundarySdFTBBgUwnJBiE8irnrnContent-Disposition: form-data; name="op"rnrnEnvoyerrn----WebKitFormBoundarySdFTBBgUwnJBiE8i--rn'
链接地址: http://www.djcxy.com/p/48798.html上一篇: 数据:文件内容未发布