Liebe Leute!
Ich komme leider beim Erstellen der Datenblöcke nicht weiter.
Event-BiDir sagt:
14.05.2022 19:39:34 (IP: 192.168.0.3) (Port: 3000)
(Send: 149)....0xd 0xa
POST /api/auth/login HTTP/1.0
Host: 192.168.0.3:3000
Content-Type: application/json
Accept: */*
{
"auth": "auth",
"password": "pwd"
}
(Recv: 116) 0...d 0xa
HTTP/1.0 400 Bad Request
Content-Type: application/json
Date: Sat, 14 May 2022 17:39:34 GMT
Content-Length: 0
(Gesamt: 1) (Work: 1) (Typ: Liste) (OK: 1)
Die API - Doku gibt an: (https://docs.ansible-semaphore.com/a...tion-guide/api)
curl -v -c /tmp/semaphore-cookie -XPOST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"auth": "YOUR_LOGIN", "password": "YOUR_PASSWORD"}' \
http://localhost:3000/api/auth/login
und postman gibt an:
POST http://192.168.0.3:3000/api/auth/login204218 ms
POST /api/auth/login HTTP/1.1
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.0
Accept: */*
Postman-Token: 581a6b30-b264-4312-add5-ac301e09ddb2
Host: 192.168.0.3:3000
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 47
{
"auth": "auth",
"password": "pwd"
}
Beide funktionieren.
Mein Aufbau im experte 4.11 schaut so aus:
Datenblock
1Text: POST /api/auth/login HTTP/1.1
2Text: Host: 192.168.0.3:3000
3Text: Content-Type: application/json
4Text: Accept: */*
5 Text:
6 Text:{"auth": auth"password": pwd}
7 Text:
Alle Datenblöcke mit CRLF
Ev. kann mir jemand helfen?
Vielen Dank
Ich komme leider beim Erstellen der Datenblöcke nicht weiter.
Event-BiDir sagt:
14.05.2022 19:39:34 (IP: 192.168.0.3) (Port: 3000)
(Send: 149)....0xd 0xa
POST /api/auth/login HTTP/1.0
Host: 192.168.0.3:3000
Content-Type: application/json
Accept: */*
{
"auth": "auth",
"password": "pwd"
}
(Recv: 116) 0...d 0xa
HTTP/1.0 400 Bad Request
Content-Type: application/json
Date: Sat, 14 May 2022 17:39:34 GMT
Content-Length: 0
(Gesamt: 1) (Work: 1) (Typ: Liste) (OK: 1)
Die API - Doku gibt an: (https://docs.ansible-semaphore.com/a...tion-guide/api)
curl -v -c /tmp/semaphore-cookie -XPOST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"auth": "YOUR_LOGIN", "password": "YOUR_PASSWORD"}' \
http://localhost:3000/api/auth/login
und postman gibt an:
POST http://192.168.0.3:3000/api/auth/login204218 ms
POST /api/auth/login HTTP/1.1
Content-Type: application/json
User-Agent: PostmanRuntime/7.29.0
Accept: */*
Postman-Token: 581a6b30-b264-4312-add5-ac301e09ddb2
Host: 192.168.0.3:3000
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 47
{
"auth": "auth",
"password": "pwd"
}
Beide funktionieren.
Mein Aufbau im experte 4.11 schaut so aus:
Datenblock
1Text: POST /api/auth/login HTTP/1.1
2Text: Host: 192.168.0.3:3000
3Text: Content-Type: application/json
4Text: Accept: */*
5 Text:
6 Text:{"auth": auth"password": pwd}
7 Text:
Alle Datenblöcke mit CRLF
Ev. kann mir jemand helfen?
Vielen Dank
Kommentar