Skip to content

Authorization header not found #156

@julzlegaspi

Description

@julzlegaspi

Hello, I was trying to login on SAP B1 but I'm always getting an error 'Authorization header not found'. Here is my code

import pyodata
import requests

SERVICE_URL=https://192.168.xx.xx:50000/b1s/v1

s = requests.Session()
s.verify = False

 s.post(service_url+'/Login', headers={
            "CompanyDB": SAPDEMO,
            "Password": mypassword,
            "UserName": myusername
        })

client = pyodata.Client(SERVICE_URL, s)
print(client)

Metadata

Metadata

Assignees

No one assigned

    Labels

    V3OData V3duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions