Skip to content
Discussion options

You must be logged in to vote

Let's see if I manage to understand you
Cookies here are irrelevant, what you are doing is trying to parse a text with a function to parse HTTP headers, and you seem to have success when there is more than one element of what you think it is valid (thing that you don't say but I guess from the title and the parts you commented out in your code), congratulations, and fail when there is only one, I'm sorry.
You are using a function that was written to parse HTTP headers, not text. If you succeed, congratulations, if you don't succeed, I'm sorry. Use a function written to parse text, the function you're calling was not meant to be used like that.
Please see our documentation, and follow the …

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by scaprile
Comment options

You must be logged in to vote
6 replies
@hoathienvu8x
Comment options

@scaprile
Comment options

scaprile Dec 2, 2025
Collaborator

@scaprile
Comment options

scaprile Dec 2, 2025
Collaborator

@hoathienvu8x
Comment options

@hoathienvu8x
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants