Quote:
Originally Posted by marbs
hint?
|
I didn't have much time, but briefly, what's happening is you have some java running when you enter a next page number at the bottom of your page. That number is added to a POST which goes to your url. You saw the POST in TamperData. You need to simulate it, or at least simulate the important parts, like rsSearchRes_PgNo.
It's done as follows:
Code:
data = urllib.urlencode({ 'rsSearchRes_PgNo':'2'})
url = 'http:// whatever'
br.open(url, data)
That just sets one value. I don't know how much testing you did with TamperData, but you can empty the values, or delete them entirely. You may need to test with the various parameters actually deleted in tampered TamperDAta POST commands to make sure that's the only item needed. If you need more, you can add as many parameters in the data = line as you want to be sent by the POST.
The data that you send in the POST can be seen with:
Code:
# Print HTTP headers.
br.set_debug_http(True)