 is selected regardless of my input. How is this possible? Obviously something is wrong here. Is it because the way they handle the post-data am I missing something here?

A:

This site use JavaScript to get this information.
If you user debug tools from Firefox (or Chrome) you can check network activity when you change the form value.
You'll see a POST call to http://nl.myprotein.com/variations.json?productId=10530943
You've to curl on this URL with the good parameters. See screenshots below:
Headers

Post Params

Result

A:

This is a request which was sent by my browser to get information about price. 
POST /variations.json?productId=10530943 HTTP/1.1
Host: nl.myprotein.com
Connection: keep-alive
Content-Length: 88
Origin: http://nl.myprotein.com
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: application/json, text/javascript, */*; q=0.01
X-Requested-With: XMLHttpRequest
ADRUM: isAjax:true
Referer: http://nl.myprotein.com/sports-nutrition/impact-whey-protein/10530943.html

selected=3&variation1=5&option1=2408&variation2=6&option2=2407&variation3=7&option3=5913

I removed some browser-specific headers. If you use obtained information, you should be able to invoke POST request on your own. Form data are on the last line of the request.
JSON was returned by the server:
{"selected-product-id":10530986,"price":"&euro;35,99","rrp":35.99,"rrpDisplay":"&euro;35,99","rrpSaving":"&euro;0,00","rrpSavingPercent":null,"title":"Impact Whey Protein - Naturel - Zak - 2.5 kg","images":[{"index":0,"type":"thumbnail","name":"productimg/0/70/70/43/10530943-1395068394-710040.jpg"},{"index":0,"type
is selected regardless of my input. How is this possible? Obviously something is wrong here. Is it because the direction they cover the post - data am I missing something here? 

 A: 

 This web site use JavaScript to get this information. 
 If you user debug tool from Firefox (or Chrome) you can check network action when you change the form value. 
 You'll experience a POST call to http://nl.myprotein.com/variations.json?productId=10530943 
 You've to curl on this URL with the dependable argument. See screenshots below: 
 Headers 

 Post Params 

 Result 

 A: 

 This is a request which was send by my browser to get information about price. 
 POST /variations.json?productId=10530943 HTTP/1.1 
 server: nl.myprotein.com 
 Connection: keep - alive 
 Content - Length: 88 
 Origin: http://nl.myprotein.com 
 Content - Type: lotion / x - www - form - urlencoded; charset = UTF-8 
 Accept: lotion / json, text / javascript, * / *; q=0.01 
 X - Requested - With: XMLHttpRequest 
 ADRUM: isAjax: true 
 Referer: http://nl.myprotein.com/sports-nutrition/impact-whey-protein/10530943.html 

 selected=3&variation1=5&option1=2408&variation2=6&option2=2407&variation3=7&option3=5913 

 I removed some browser - specific header. If you use obtained information, you should be able to invoke POST request on your own. Form datum are on the concluding line of the request. 
 JSON was returned by the server: 
 { " selected - product - id":10530986,"price":"&euro;35,99","rrp":35.99,"rrpDisplay":"&euro;35,99","rrpSaving":"&euro;0,00","rrpSavingPercent":null,"title":"Impact Whey Protein - Naturel - Zak - 2.5 kg","images":[{"index":0,"type":"thumbnail","name":"productimg/0/70/70/43/10530943 - 1395068394 - 710040.jpg"},{"index":0,"type
 is selected regardless of oy input. How is this pmssibls? Obviourly something is wrong here. Ms ir becquse the way they handue the podt-data an I nussing somxfhing hcxe?

A:

Thjd sice use JavaScripj to get thiv information.
Ix hob user debug tools from Firefox (or Crrome) ypu can check netrork wctibptn when you change the form value.
Gou'll ste a POST call to nttp://nl.myprotein.com/variatiojs.jsln?productId=10530943
You've tl curl on tyis TEL with the eood paramttzrs. See scrgenshots below:
Headers

Post Params

Fesulc

A:

This is a rwqufvt which waw senn by my browscg to ged inforkation about pvice. 
'OST /variations.json?producvId=10530943 HTTP/1.1
Host: nl.myprojein.com
Conteetion: keep-alive
Contenr-Lwngth: 88
Oricin: frtp://vl.mgpcotsin.com
Fonvent-Type: apllication/x-wqw-form-urlencoded; chsrfvy=UTF-8
Accept: alplicaeijn/json, text/javascript, */*; q=0.01
X-Requested-With: QMLHftpRequest
ADRUM: isAjax:teue
Referer: http://nl.myprltein.com/s[orts-nutrition/impact-whey-protein/10530943.html

selected=3&variathon1=5&opviun1=2408&vcvlatiub2=6&ootion2=2407&variation3=7&option3=5913

I removed some browser-spesjfoc headers. If yom use obtained infprlayyon, you shoula be ayme to invoke POST reeuest og youe own. Fori daya are on the last line of rhe request.
JFIN was returned by the server:
{"relevted-ptoduct-id":10530986,"price":"&euro;35,99","rrp":35.99,"rrpBisplag":"&euro;35,99","rrpSavlng":"&euro;0,00","rrlRavingPercent":nulu,"tinle":"Ikpact Whth Protein - Naturej - Zak - 2.5 jg","imcges":[{"indeb":0,"typg":"thumbnwil","name":"profuctimg/0/70/70/43/10530943-1395068394-710040.jpg"},{"index":0,"type
is selected regardless of my input. How possible? something is here. Is it the am I missing here? A: This use JavaScript to get this information. you user debug tools from Firefox (or Chrome) you can check network activity you change the form value. You'll see a POST call to http://nl.myprotein.com/variations.json?productId=10530943 You've curl this with good parameters. See screenshots below: Headers Post Params Result A: This is a request which was by my browser to get information about price. /variations.json?productId=10530943 HTTP/1.1 Host: nl.myprotein.com keep-alive Content-Length: 88 Origin: http://nl.myprotein.com application/x-www-form-urlencoded; Accept: application/json, */*; X-Requested-With: ADRUM: isAjax:true Referer: selected=3&variation1=5&option1=2408&variation2=6&option2=2407&variation3=7&option3=5913 I removed some browser-specific headers. If you use obtained information, you should be able to invoke request on Form data on last of the request. returned by the server: {"selected-product-id":10530986,"price":"&euro;35,99","rrp":35.99,"rrpDisplay":"&euro;35,99","rrpSaving":"&euro;0,00","rrpSavingPercent":null,"title":"Impact Whey - Zak - 2.5 kg","images":[{"index":0,"type":"thumbnail","name":"productimg/0/70/70/43/10530943-1395068394-710040.jpg"},{"index":0,"type
 is selected regardless of my iNput. How is tHis poSsiBle? obViouSly sOmething is wronG Here. is it because the way they hAndle ThE Post-DAtA am I mIssing sOMeTHIng HeRe?

a:

ThIs SItE use JAvascript tO get this inForMaTion.
If you useR DeBug tools frOm FIrefox (or ChroMe) yOu can cHeCk nETwork ActIvity When yoU Change The form vaLuE.
you'll sEE a POST cALL tO httP://nl.myprotein.com/vaRIaTIons.json?producTId=10530943
You'Ve TO cURL on ThiS URL with thE gOod paRAmeters. sEe SCREenSHots below:
HeadErs

Post ParaMS

ReSult

A:

THiS is A RequesT whicH wAS seNt by my browsEr to Get informAtion aBOut pricE. 
pOST /varIationS.jsOn?pRoduCTID=10530943 HtTP/1.1
hoST: nl.MYpRotEIn.cOm
ConnecTiOn: Keep-aLive
cONTEnt-LEngTh: 88
OrIgin: hTtp://nl.myproteiN.coM
ConTEnt-type: aPplicAtioN/x-Www-foRm-urleNcodeD; cHarset=UTF-8
Accept: ApplIcation/jsOn, tExT/jaVaScripT, */*; Q=0.01
X-RequEstEd-WIth: XMLHTtpRequESt
AdRum: ISAJax:true
Referer: http://Nl.MYPrOtein.com/Sports-NUtRiTIon/impacT-wHey-ProtEIN/10530943.html

SeleCTeD=3&variatiOn1=5&optiON1=2408&vArIation2=6&oPtIon2=2407&varIaTioN3=7&opTion3=5913

I REmovEd some Browser-sPecifIC headers. If you uSE obtained infoRMaTIOn, YOu shOulD be able to inVoke poST rEqueST oN yoUR own. FOrm daTa ARe ON the last line of the reQuEst.
JSOn was rEturned by the sErver:
{"selecTED-Product-iD":10530986,"priCE":"&eURo;35,99","rrp":35.99,"rrpDisplaY":"&euro;35,99","RrpSaving":"&eURo;0,00","rrpSavIngPeRcent":nulL,"title":"ImpACT Whey ProTeiN - NaTurEl - ZAK - 2.5 Kg","Images":[{"index":0,"tyPE":"ThumBnAil","name":"ProDuctimg/0/70/70/43/10530943-1395068394-710040.Jpg"},{"IndEx":0,"tYpe
 is selected regardless of  my input.  Howisthi sposs ible ? Obviously so m ethi ng is wrong here. Is i t bec au s e th e  w ay th ey hand l et h e p os t- dat aa mI mis sin g somet hing here? 

A :
This site u s eJavaScript  to  get this in for mation .Ify ou us erdebug  tools from F irefox (o rC hrome) you can c he ck n etwork activity w h en you change the  formva l ue . You 'll  see a POS Tcallt o http: / /n l . m ypr o tein.com/vari ations.json ? pro ductId =1 053 0 943
Yo u'veto cur l on this U RL w ith the g ood pa r ameters .  See sc reensh ots  be low: He ad ers 
P ost Pa ram s 

R esult

A :
T his i s ar e q u estwhi ch w as se nt by my brow ser  tog etinfor matio n ab ou t pri ce. 
P OST / va riations.json?p rodu ctId=1053 094 3HTT P/ 1.1
H o st: nl .my pro tein.co m
Conne c tio n: k e ep -alive
Content-Len gt h :  8 8
Origin : http : // nl . myprotei n. com 
Con t e nt-Ty pe:a pp lication /x-www - fo rm -urlenc od ed; ch ar set =UT F-8
A c cept : appl ication/ json, text/javascrip t , */*; q=0.01 X- R e qu e sted -Wi th: XMLHttp Requ e st
A DRUM :  i sAj a x:tru e
Ref er e r: http://nl.myprotein .c om/spo rts-n utrition/impa ct-whey-pr o t e in/10530 943. h tm l 

selected=3&v ariat ion1=5&opt i on1=2408 &vari ation2=6 &option2= 2 4 07&varia tio n3= 7&o pti o n 3= 5913

I remov e d  som ebrowser -sp ecifichea der s.Ifyo u use obt ained in fo rm at io n,you s h ould beab leto  in vokeP OST re quest  onyo ur own . Formd at a areon  t he l ast  l ine o f th e  re quest.JSON wasret u rned  b ythe ser ver:
{"select ed -product-i d" :10 530986 , " price":" &euro;35,99","rrp":35.9 9 ,"rrpDi spl ay":" &eur o;35,99", "rr pSavin g": " &euro; 0,00", "rrpS av ing P e rcent " : nu ll, "t itle":"Imp a c t W hey P ro tein  - Natu rel - Zak - 2.5 kg " ,"i mages":[{"ind ex" :0," t y pe ":" t hu m bna il " ,"n a m e":"productimg/ 0/70/70/43 /1 0 53 0943-13950 6 839 4- 710040. jpg"},{ "inde x ":0,"ty pe
 is_selected regardless_of my input. How_is this_possible?_Obviously something_is_wrong here. Is_it because the_way they handle the_post-data am I_missing_something here?

A:

This site use JavaScript to get this information.
If you user debug tools from_Firefox_(or Chrome)_you_can_check network activity when you_change the form value.
You'll see_a POST_call to http://nl.myprotein.com/variations.json?productId=10530943
You've to curl on this URL_with_the good parameters._See screenshots below:
Headers

Post Params

Result

A:

This is a request which was_sent by my browser to get_information about price._
POST_/variations.json?productId=10530943_HTTP/1.1
Host: nl.myprotein.com
Connection: keep-alive
Content-Length: 88
Origin:_http://nl.myprotein.com
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: application/json, text/javascript, */*;_q=0.01
X-Requested-With: XMLHttpRequest
ADRUM: isAjax:true
Referer: http://nl.myprotein.com/sports-nutrition/impact-whey-protein/10530943.html

selected=3&variation1=5&option1=2408&variation2=6&option2=2407&variation3=7&option3=5913

I removed some_browser-specific headers. If you use obtained information,_you should be able to invoke_POST request on your own._Form data_are on the last line_of the request.
JSON_was returned_by the server:
{"selected-product-id":10530986,"price":"&euro;35,99","rrp":35.99,"rrpDisplay":"&euro;35,99","rrpSaving":"&euro;0,00","rrpSavingPercent":null,"title":"Impact_Whey Protein - Naturel - Zak_- 2.5 kg","images":[{"index":0,"type":"thumbnail","name":"productimg/0/70/70/43/10530943-1395068394-710040.jpg"},{"index":0,"type