I wanted to automate the process of adding items to cart on shopify stores. For example, at http://www.oneness287.com
. If you wish to buy these size 7.5 , going to http://oneness287-2.myshopify.com/cart/29741797961:1
automatically adds the product to my cart and redirects me to the checkout page.
But when I do
http.Get("http://oneness287-2.myshopify.com/cart/29741797961:1")
from my golang code, and then check my cart. The cart is still empty. What is different in this case? In the first case I am making the request from the browser, in the second my script is making the request. How do I fix it?