[Python] How do I make a variable in the requests payload for python?

Discussão em 'Python' iniciado por Stack, Julho 15, 2025.

  1. Stack

    Stack Membro Participativo

    I have the following payload for the requests module in python and I want to make MAC and NAME a variable as I iterate through a csv of information? Is there a way to do this?

    payload = '''{
    "clients": [
    {
    "mac": MAC,
    "name": NAME
    },
    ],}'''

    Continue reading...

Compartilhe esta Página