Repository navigation
Give Gemini CLI the HTTP evidence before changing a redirect #30466
fainir
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I build Betterloop. I made a small Gemini CLI exercise around a pricing link whose redirect is deliberate. It gives the agent the actual HTTP evidence before it suggests changing the page.
In a scratch folder, capture the first response and the final status for this public example.
url=https://betterloopai.com/pricing { curl -fsS --max-time 15 -D - -o /dev/null "$url" | awk 'tolower($1) == "location:" || $1 ~ /^HTTP\// { sub(/\r$/, ""); print }' curl -fsSL --max-time 15 --max-redirs 3 -o /dev/null -w 'Final status: %{http_code}\n' "$url" } > redirect-evidence.txtMy live run returned
308,location: /#pricing, and final status200.From that folder, start Gemini CLI in Plan Mode. If the CLI asks about trust, review the scratch folder and trust that folder.
Paste this prompt into the CLI.
The fragment takes a browser to the pricing section of the home page. The three lines establish the redirect and response status. Confirm the pricing section and canonical separately in the rendered page or HTML.
Run a free Betterloop report on your public URL for more evidence on the page, its crawl rules and available speed tests. The report shows which sources ran and requires no account. Its optional multi-site monitoring offer is $19 a month.
Gemini CLI file references
All reactions