Comments (9)
Ok, tonight I'll make the PR.
from http-status-check.
Totally agree that the tool should have an option to write the non 2xx responses to a file. I'd accept a non-breaking fully tested pull request for this.
from http-status-check.
As I started to implement the feature, some questions appeared, like:
- If the file exists, will it be overwritten?
- Will it be necessary to check for permissions to write the file?
- Should we use an abstraction (i.e.: Flysystem) to manipulate the file?
from http-status-check.
Thank you for putting time into this.
- since we're running at the console, we can just ask the user if the file should be overwritten
- nah, just let it fail if there's no permission to write to the file
- seems like overkill, let's just use
file_put_contents
.
from http-status-check.
@freekmurze forgot to change old array styles to new ones in the test, late at night =). I can fix it tomorrow.
from http-status-check.
Fixed the issues reported by StyleCI and squashed the commits.
If there's anything missing, please, report. Thanks!
I'm pretty sure that the implementation could be improved and I'm open to suggestions, but this one was the simplest one from my point of view.
from http-status-check.
Implemented in v2.1.0
🎉
from http-status-check.
I opened a ticket for an idea but didn't get round to work on it myself. Come back a couple days later to see somebody implemented it - open source is a beautiful thing.
Thanks a lot @ramirovjr!
from http-status-check.
@twiebie no problem, I'm glad I could help and also thanks @freekmurze for the opportunity to contribute to the project.
from http-status-check.
Related Issues (20)
- Tel: links are crawled HOT 4
- Version 3.0 returns 301 on website to check HOT 2
- Not working on L5.6 HOT 1
- Add --ignore-robots option HOT 1
- Error after updating from 3.0.0 to 3.1.0 (getReasonPhrase on null) HOT 1
- BasicHTTP authentication support HOT 1
- Not every option is included HOT 4
- Feature request for delay/wait timer between requests HOT 2
- Feature Request: Full output log in parsable format HOT 3
- Confusing --output overwrite (append) behaviour HOT 1
- Not picking up some 404's HOT 8
- Invalid status code in Response.php HOT 1
- Check HTTP status of images HOT 1
- how it work in ubuntu HOT 3
- Difficulties installing on a Win10 environment HOT 1
- Tests are failing HOT 2
- PHP8 version doesnt work HOT 1
- Add support for Js executing
- Add CSV output option and treat specified URL as erroneous
- Deprecated notices for PHP 8.1.6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-status-check.