bash - POST call with same headers and same request body gives different response? -
i using website (mysite1.com) , , 3 screens deep login screen screen want reach using bash , curl & simulating exact same request have gone through browser. mean simulating sending same headers (including referer & origin).
here happening:
- i able cross login screen & screen 2 simulating browser behaviour
- now, stuck @ screen 3. post call goes mysite1 server same browser send, every bit of it.
- to post call of 3rd screen , create form on localhost action="urlof3rdscreenonmysite1" , method=post. , before submitting, change referer origin , other headers using browser extension.
- this generating request mentioned in point 2. however,the first 2 calls screen1 , 2 in bash.
there no cookies being used mysite1. session_id there query string parameter. assumed server keeping track of flow of urls requested, got error response when followed flow using bash.
the post call in 3rd screen returns different response (an error response) when try simulate , returns , when flow of urls requested same in both cases. how can possible? how server coming know these request different, 1 browser , other bash + last-screen-from-browser? there other parameters involved except headers + post data + urls requested? maybe different connection established when calling 3rd screen browser?
Comments
Post a Comment