test
This commit is contained in:
parent
bf3c41113a
commit
3dd0788a84
1 changed files with 6 additions and 4 deletions
10
Bot/Untis.go
10
Bot/Untis.go
|
|
@ -3,6 +3,7 @@ package Untis
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"io"
|
||||||
"log"
|
"log"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
@ -66,10 +67,11 @@ func Auth() ([]*http.Cookie, error) {
|
||||||
|
|
||||||
// Parse cookies from response
|
// Parse cookies from response
|
||||||
cookies := LoginOut.Cookies()
|
cookies := LoginOut.Cookies()
|
||||||
//log.Println("Received cookies:", cookies)
|
log.Println("Received cookies:", cookies)
|
||||||
//log.Println("Set-Cookie headers:", LoginOut.Header["Set-Cookie"])
|
log.Println("Set-Cookie headers:", LoginOut.Header["Set-Cookie"])
|
||||||
//loginRespBody, _ := io.ReadAll(LoginOut.Body)
|
loginRespBody, _ := io.ReadAll(LoginOut.Body)
|
||||||
//log.Println("Login response body:", string(loginRespBody))
|
log.Println("Login response body:", string(loginRespBody))
|
||||||
|
|
||||||
log.Println("Login successful")
|
log.Println("Login successful")
|
||||||
return cookies, nil
|
return cookies, nil
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue