Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Programming Help
03-13-2013, 01:39 AM #1
- Join Date
- Mar 2013
- Thanked 0 Times in 0 Posts
Hi I am new to programming and looking for some help. I want to create a program to automatically choose a size and add a pair of shoes to the cart on nike.com. I am willing to do it myself; I just need to know if I would use Java or what type of program I need to learn how to learn.
03-13-2013, 02:06 AM #2
You probably can't do it.
What you *MIGHT* be able to do is to clone the <form> on the Nike site to your own site, making sure that the action= of the <form> still points to the Nike site. Then you could use your own JS code on your own site to fill in the <form> and submit it to the Nike site. More than likely, that won't work. And that's because, of course, to Nike you look like somebody trying to hack their site and submit bogus orders. So, like most modern sites, they will have all sorts of code in place to detect attempts to do this very thing. Just for example, and the most obvious thing to check and the easiest for even a beginner in server-side programming to implement: Whan any <form> is submitted (or any page is linked to another, for that matter), the receiving site can check something called the HTTP_REFERER, which tells it what site *AND PAGE* the <form> or other link came from. And if the REFERER is not what the site is expecting, it rejects the attempt.
SO... If you are truly a newbie, I'd say you are very very unlikely to succeed at this. And if you aren't a newbie, your changes of success are still pretty darned small.Be yourself. No one else is as qualified.