Kyle
Kyle
Based on the error message, it sounds like the request is unauthenticated. The reason it works in the browser is because you've previously gone through the login page, and the...
The 'Set-Cookie' HTTP response header is sent by the server; it contains a string and some metadata that the browser parses, and then the browser will send it back when...
Haha, no problem. I discovered this repo back when I was in high school, and was also pretty lost, so I definitely understand feeling uneducated with all the stuff you...
> Do I replace 'header' with 'Set-Cookie', or the key within? That $opts array is the headers you're sending to the server in a request, so the name of the...
I don't think line breaks are allowed within a single 'Cookie' header, since line breaks are used to separate each header from the next. And you can probably get rid...
You're still hardcoding the cookies, right? It's possible that one or more of the cookies have expired since you originally retrieved them, so you're being redirected to log in again....
> ` 'header'=>"Accept-language: en\r\n" ."Cookie: Set-Cookie: $finalCookies\r\n"` You definitely shouldn't have the string "Set-Cookie" included in your 'Cookie' header. That's the name of the response header, and you only want...
To debug this, I would first try using the exact cookie the browser is using, and hardcode that. To get the browser's cookie, go into your browser, make sure you...