coursesURL = 'http://www.neopets.c...ml?type=courses'
processURL = 'http://www.neopets.c..._training.phtml'
statusURL = 'http://www.neopets.c...tml?type=status'
courseData = urllib.urlencode({'type':Start, 'course_request':coursetype, 'pet_name': pet})
Now to select my course do I do.
selectcourse = urllib2.Request(courseURL, courseData, headers)
OR
selectcourse = urllib2.Request(processURL, headers)
with a refer of courseURL + post data.
Sorry if this is a bit confusing I'm not familiar with python.
Edit: I notice when I click the link to PAY for my training that I POST
'http://www.neopets.c..._name=MYPETNAME'
So I think that in order to pick my course I actually POST
'http://www.neopets.c..._name=MYPETNAME'
with refer from
'http://www.neopets.c...ml?type=courses'
Edited by Shrouded, 14 March 2012 - 12:49 PM.