Giacomo Cerquone
Giacomo Cerquone

Reputation: 2479

Automate processes on websites studying ajax requests

In two days I found myself thinking of automating processes through ajax requests on websites. What I would like to do is to study some request from some operation executed on a website and replicate it with javascript. So for example I have this POST request when I select some seats in a theater: some server post request

But my knowledge on this topic is not enough, I know how to handle POST and GET requests but I don't know exactly how to replicate them. So let's say we want to replicate this request with jquery, how it would be?

PS = I would really appreciate if you could post some resources about this topic.

Upvotes: 0

Views: 358

Answers (1)

px5x2
px5x2

Reputation: 1565

If I don't get you wrong, you can listen ajax requests and jQuery provides event related to ajax requests, for instance:

ajaxComplete(callback) http://api.jquery.com/ajaxcomplete/

It provides you 3 parameters: event, xhr, settings and you can use them to reconstruct the ajax request.

Upvotes: 1

Related Questions