Giter VIP home page Giter VIP logo

Comments (5)

glyn avatar glyn commented on June 12, 2024

curl equivalent to failing Safari request:

curl 'https://underlap.org/tag:WriteFreely' \
-X 'GET' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-Fetch-Dest: document' \
-H 'Accept-Language: en-GB,en;q=0.9' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Host: underlap.org' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.41' \
-H 'Referer: https://underlap.org/' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Connection: keep-alive'

The above can be reduced to the following, which still fails:

curl https://underlap.org/tag:WriteFreely

curl equivalent to successful Firefox request (cookie data redacted):

curl 'https://underlap.org/tag:WriteFreely' \
-H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:120.0) Gecko/20100101 Firefox/120.0' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8' \
-H 'Accept-Language: en-US,en;q=0.5' \
-H 'Accept-Encoding: gzip, deflate, br' \
-H 'Connection: keep-alive' \
-H 'Referer: https://underlap.org/tag:WriteFreely' \
-H 'Cookie: wfu=...' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'Sec-Fetch-Dest: document' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-Fetch-User: ?1' \
-H 'Sec-GPC: 1' \
-H 'TE: trailers'

The above can be reduced to the following, which still succeeds:

curl 'https://underlap.org/tag:WriteFreely' \
-H 'Cookie: wfu=MTcwMTQ0MzE1MXxfUFBmZW5MMlk1WkZMS2dZaW1xTHZhSnpxR0lKZFBDRGhZMWVaM3c4Uld1Vi04Z1RmNm9YUmdKdUpoakFSNXdkS19wWHNuNTdqbHpSdEpvWUdWSUlnLW05cGlRb01JZkNuQjJUTExhMmpMdUpQMURDdm9jN0s4NFFqTzZJOFdZa3VmbWNFeEFoN3VCOGtvM25MZlcwS2EzWlpJZjB4ZmZrZ1RlcHU3VnBjTks4VG02NzFSM1Y1WC1KX1ZwcmRKSUJ4dWpBX2c0eGY5cEU4UTNST0t2ZzdPaVpRSjNnNnJZWXU3Y21wYUtPWG1EeDRsQ3p5RlczbzlSdFdZRGtqZTc0Z0x0WDRmUnM1dWM2WXFlRnJEczdseHhhNTBTcC1vNHFNdy1TTUo2MGxENHFYLWNSckdZcDdsYVVhVUhtVmFsbDhWdFcxLUliblI3QTlOcndEa0FmYjd0Y2dpWDd2OUxRWDRaTGU4bVVkVXZqeVAybTBpWUVIN3NMTmVQVllocFBQbUxQVi10Y2NxQnE4MURXZHZHby1TbnlWbjZfeHdyWnU4anlTa212RmRqOG9uRFFkaHlCNVNmSl9udWNCVjR4eG5BOF90WkVCVzUyNWR1cVNtRTV2UkJ4VkxqYVFBPT18GyOUN-fem3hEU3DR_Cd0A8AwoDEfseW1-m-fjg-o0oc='

Removing the cookie header from this curl causes the request to fail.

Based on this, I was able to reproduce the problem using a new private window in Firefox and entering the URL https://underlap.org/tag:WriteFreely.

Note: cookies are enabled in my Safari preferences.

from writefreely.

glyn avatar glyn commented on June 12, 2024

Based on the previous comment I logged in to writefreely on Safari and the problem no longer reproduced. There was then a wfu cookie in the requests. Clearly this isn't a solution for other users of the site, but it may help to narrow down what's going on.

from writefreely.

glyn avatar glyn commented on June 12, 2024

I tried to reproduce the problem on another instance running writefreely v0.12.0 and the problem did not recur, e.g. with the URL https://wordsmith.social/underlap/tag:git. There were no cookies present.

from writefreely.

glyn avatar glyn commented on June 12, 2024

This looks like a dup of #783.

from writefreely.

glyn avatar glyn commented on June 12, 2024

A private build of the develop branch picked up the fix for #783 and fixed the problem.

from writefreely.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.