[Python] Api Test : Postman vs Python Requests

Discussão em 'Python' iniciado por Stack, Fevereiro 22, 2025.

  1. Stack

    Stack Membro Participativo

    I could send post request using postman, but I it fails with python requests library:

    headers = {'Content-Type': 'application/xml'}
    r = requests.post(url, data=xml, headers=headers)


    Why postman test is ok? What is the difference between Postman and python request post?

    Continue reading...

Compartilhe esta Página