New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Latest server response #265
Comments
Looking at the logs will do the job, but I will add the date to the server info. 😃 Last check; |
It's not ready for testing! |
@TimZ99 What's the status of this? |
I must admit that I forgot about it. This is the latest version. If you have time, could you write the part to collect the raw data? |
Sure, If I have any questions ill ping you here |
Great! Keep me posted, I will also be working on the project this week. |
I just saw that you are using gitter; tty there \o/ |
👍 |
Thank you for getting back on this feature suggestion. Much appreciated!! |
You're welcome ;) |
ok, after a little bit of poking :) @TimZ99 I see you already did: only thing left is; Can some one give me the context of that? Is the last error HTTP STATUS ERROR, TEXT ERROR, TIMEOUT ERROR, etc... or something else; and last raw error output? what is that? |
@TimZ99 this can be used to get a better understanding of an error; I'm still missing what's the raw error output? |
@geri777 can you give us more explanation? |
OK, i think i have done it; |
Only problem; the way it's done now I don't think you can get the "raw" response |
curl_exec is being used with CURLOPT_RETURNTRANSFER option enabled. it returns mixed
Meaning that complete check has to be done in a different way to ger the "raw" response; currently you only get "raw" response on SUCCESS; @TimZ99 when you see this, if you have time ping me on Gitter |
@TimZ99 I really don't see a way of getting a body or a headers if curl_exec() fails. It just returns FALSE; only thing that you can get when that happens is a error message via curl_error(). -- |
I think I'm done. https://github.com/phpservermon/phpservermon/tree/feature/265 Could you guys check if you agree with me? |
I would like to suggest a feature in the backend to view the latest server output.
In best case it should be 2 buttons: "latest positive server output" and "latest error server output".
This would help a lot to find out why an alert was triggert - and it would even be more helpful for the setup, if you have redirects etc.
The output log should contain the raw response, including headers.
The text was updated successfully, but these errors were encountered: