我曾经通过标准的html链接和网址参数将我网站上的产品添加到bigcartel :(即node.js socket.write() not work on if condition)
因为bigcartel自己只是发送一个POST到购物车,包括价值cart[add][id]
它工作正常,产品被添加到我的bigcartel购物页面的购物车。
但它不再有效,我不知道为什么。现在还有其他人遇到同样的问题吗? Bigcartel是否将其参数或网址中的任何内容更改为POST?
它仍适用于bigcartel商店页面本身 - 这是发布的内容:
URL:http://poleit.bigcartel.com/cart
Request Method:POST
Status Code:302 Found
Remote Address:151.101.1.211:80
Referrer Policy:origin
和表单数据是:
utf8:✓
cart[add][id]:147031078
submit:
我的链接如下:
<a href="http://poleit.bigcartel.com/cart?cart%5Badd%5D%5Bid%5D=88038046" onclick="window.open(this.href, 'bigcartel','right=20,top=20,width=500,height=500,toolbar=0,resizable=0'); return false;" class="link link-add js_link-to-big animated fadeIn">add to cart</a>
感谢您的帮助! 这是链接:
http://poleit.bigcartel.com/cart?cart%5Badd%5D%5Bid%5D=88038046