Sessione salvata: copia alla chiusura della finestra e alla fine della guida, «Serve «Ho finito»», scelta per la copia incompleta e stato in Collegamento (#36, S4b)
Risposte 1, 5, 6, 9 e 10 di Alberto a S4. I valori __spin_r, __spin_b e __spin_t si copiano dalla pagina come gli altri (su Instagram da SiteData, ipotesi H23, operazioni ancora non configurate; nel sito di prova dal modulo GiroProva). La sessione si copia anche quando si chiude la finestra del browser su Windows e quando il permesso di guida finisce, sempre prima che la pagina torni al motore e con le garanzie di «Ho finito». Con «richieste» «Collegato» vuole una sessione salvata leggibile, altrimenti lo stato è «Serve «Ho finito»» e il motore aspetta. Nuova impostazione sessione.copia-incompleta (sostituisci, predefinita, o tieni-completa) e riquadro della sessione salvata nella pagina Collegamento, con soli conteggi e nomi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9958745e53
commit
883ea4683c
41 files changed
+1349
-101
No files matched your search
@@ -345,6 +345,9 @@ public sealed partial class RequestCatalogTests
|
||||
Assert.AreEqual(new PageValueSource("SiteData", "comet_env"), instagram.Values["comet_req"]);
|
||||
Assert.AreEqual(new PageValueSource("WebConnectionClassServerGuess", "connectionClass"), instagram.Values["ccg"]);
|
||||
Assert.AreEqual(new PageValueSource("BootloaderConfig", "nonce"), instagram.Values["entry_nonce"]);
|
||||
Assert.AreEqual(new PageValueSource("SiteData", "__spin_r"), instagram.Values["spin_r"]);
|
||||
Assert.AreEqual(new PageValueSource("SiteData", "__spin_b"), instagram.Values["spin_b"]);
|
||||
Assert.AreEqual(new PageValueSource("SiteData", "__spin_t"), instagram.Values["spin_t"]);
|
||||
CollectionAssert.AreEquivalent(SiteSessionValues.PageFields.ToArray(), instagram.Values.Keys.ToArray(), "A place for every page value.");
|
||||
|
||||
// The test site has its own module names, never Instagram's.
|
||||
@@ -376,9 +379,10 @@ public sealed partial class RequestCatalogTests
|
||||
|
||||
Assert.AreEqual(new ValueSource(ValueSourceKind.Session, "entry_nonce"), operation.Headers["x-fb-entry-nonce"], operation.Name);
|
||||
Assert.AreEqual(new ValueSource(ValueSourceKind.Constant, "359341"), operation.Headers["x-asbd-id"], "The BDHeaderConfig property is not established.");
|
||||
foreach (var spin in new[] { "__spin_r", "__spin_b", "__spin_t" })
|
||||
// A snapshot of the page at «Ho finito» (decision of 18 November 2026); the operations stay not configured anyway.
|
||||
foreach (var spin in new[] { "spin_r", "spin_b", "spin_t" })
|
||||
{
|
||||
Assert.AreEqual(ValueSourceKind.Pending, operation.Body[spin].Kind, $"{operation.Name} {spin}: who adds it to the request is not shown.");
|
||||
Assert.AreEqual(new ValueSource(ValueSourceKind.Session, spin), operation.Body["__" + spin], $"{operation.Name} __{spin}");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -387,17 +391,18 @@ public sealed partial class RequestCatalogTests
|
||||
public void EveryPendingLeftIsARuntimeValueABrowserHeaderOrARemovedName()
|
||||
{
|
||||
// A closed list: what the page computes while it runs (__req, __s, __dyn, __csr, __hblp, __hsdp, __sjsp, __crn,
|
||||
// __d, __spin_*, x-web-session-id), headers of the browser (referer, priority, sec-ch-ua*, x-ig-max-touch-points)
|
||||
// __d, x-web-session-id), headers of the browser (referer, priority, sec-ch-ua*, x-ig-max-touch-points)
|
||||
// and the names the probe removed. Nothing else may stay pending without a decision.
|
||||
var allowed = new HashSet<string>(StringComparer.Ordinal)
|
||||
{
|
||||
"__req", "__s", "__dyn", "__csr", "__hblp", "__hsdp", "__sjsp", "__crn", "__d", "__spin_r", "__spin_b", "__spin_t",
|
||||
"__req", "__s", "__dyn", "__csr", "__hblp", "__hsdp", "__sjsp", "__crn", "__d",
|
||||
"x-web-session-id", "referer", "priority", "sec-ch-ua", "sec-ch-ua-mobile", "sec-ch-ua-platform", "x-ig-max-touch-points",
|
||||
"fb_api_analytics_tags", "qpl_active_flow_ids", RequestCatalog.RemovedName,
|
||||
};
|
||||
var pending = RequestCatalog.LoadInstagram().Operations.SelectMany(o => o.PendingValues).Distinct(StringComparer.Ordinal).ToList();
|
||||
CollectionAssert.AreEqual(Array.Empty<string>(), pending.Where(p => !allowed.Contains(p)).ToArray());
|
||||
Assert.IsFalse(pending.Contains("__rev") || pending.Contains("x-fb-entry-nonce"), "Settled in S4.");
|
||||
Assert.IsFalse(pending.Contains("__spin_r") || pending.Contains("__spin_b") || pending.Contains("__spin_t"), "Settled in S4b.");
|
||||
Assert.AreEqual(0, RequestCatalog.LoadTestSite().Operations.Sum(o => o.PendingValues.Count));
|
||||
}
|
||||
|
||||
@@ -471,7 +476,7 @@ public sealed partial class RequestCatalogTests
|
||||
[TestMethod]
|
||||
public void TheNewSessionFieldsAreAcceptedAndUnknownOnesStillRefused()
|
||||
{
|
||||
foreach (var field in new[] { "rev", "hs", "hsi", "dpr", "ccg", "comet_req", "entry_nonce" })
|
||||
foreach (var field in new[] { "rev", "hs", "hsi", "dpr", "ccg", "comet_req", "entry_nonce", "spin_r", "spin_b", "spin_t" })
|
||||
{
|
||||
var operation = Rest("post2", "/dati/post/{code}");
|
||||
operation["headers"] = new JsonObject { ["user-agent"] = "session:user_agent", ["x-prova"] = "session:" + field };
|
||||
@@ -480,7 +485,7 @@ public sealed partial class RequestCatalogTests
|
||||
Assert.AreEqual(new ValueSource(ValueSourceKind.Session, field), Get(RequestCatalog.Parse(Alone(operation), "richieste.prova.json"), "post2").Headers["x-prova"]);
|
||||
}
|
||||
|
||||
foreach (var field in new[] { "password", "spin_r", "cookie", "sessionid" })
|
||||
foreach (var field in new[] { "password", "spin", "cookie", "sessionid" })
|
||||
{
|
||||
var operation = Rest("post2", "/dati/post/{code}");
|
||||
operation["headers"] = new JsonObject { ["x-prova"] = "session:" + field };
|
||||
|
||||
Reference in new issue
Block a user