Closed jpluimers closed 6 years ago
This isn't an issue with Press This. LinkedIn is returning a 999 response code. They are not allowing it to be retrieved. They filter based on the user agent, it looks like. If you spoof the user agent, it might work, however...I don't think putting a User Agent spoof in for a site that doesn't want to be read is something I would suggest the plugin do.
The code though, should surface to the user if an invalid response is returned. Opening a separate issue on that.
@jpluimers Keep sending these examples. They are very useful to me. I am using them to test my fork of the This parsing code which I hope to send upstream someday.
@dshanske don't worry, I will. From a testing perspective, I usually want a lot of small tests coming from practice to see where users will break your stuff. This repository is no exception (:
Shame on Linked-In BTW.
That's interesting about Linked In. Medium does the same (aiming to block WordPress pingbacks) which is why Press This sends a different but still accurate UA than WordPress itself would.
Looking around on the interwebs, this seems to be solely a LinkedIn issue that we can't resolve on our end. I wouldn't spoof the UA, but apparently they do both UA AND IP filtering, so there isn't a good solution. I'm closing this for that reason.
Thanks for the investigation @kraftbj.
Out of both curiosity and documentation purposes: any underlying links from the interwebs?
I should have posted them, but don't handy. A few stack overflow pages of folks asking about the LinkedIn 999 response code.
@kraftbj I found the below ones on StackOverflow and a general sentiment from https://www.google.com/search?q=linkedin%20999%20response is "Using the invalid HTTP response 999, LinkedIn blocks vary over time depending on both UserAgent and IP address blocks including many hosting and cloud service providers".
Parsed https://www.linkedin.com/pulse/what-your-approach-branching-tells-me-state-agile-adrian-kerry/
Expected:
Actual: nothing.
Tried from https://wiert.wordpress.com/wp-admin/press-this.php