This commit is contained in:
Jannover5000r 2025-07-03 20:16:13 +02:00
parent bf3c41113a
commit 3dd0788a84

View file

@ -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