X-Forwarded-For ip 변경해서 대량 요청 보내기
개발하는지호
주제 : 대량 요청 테스트를 하기 위해 개발 배경 및 목표 : 유량 제어 관련해서 테스트를 하기 위해 대량 요청을 날릴 수 있는 코드를 개발했다. x-forwarded-for를 랜덤으로 변경해서 요청하게끔 했다. 사용 언어 : python [코드]import requestsimport randomimport timedef generate_random_ip(): return '.'.join(str(random.randint(1, 254)) for _ in range(4))url = "http://192.xxx.x.xxx:8080/apply/transaction.pwkjson"headers_template = { "Accept": "text/html,application/xhtml+xml,ap..