code wiki / _hdl_build / _h2_probe_imgsearch.nx

_h2_probe_imgsearch.nx

buildroot/runtime/_hdl_build/_h2_probe_imgsearch.nx

3985 B58 linesdepth 19pulls 128 transitivereach 0 importersview sourcekind probetopic h2
docsdependenciesstructsconstsfunctions

about

_h2_probe_imgsearch.nx -- MEASUREMENT PROBE (ten-second-tool, NOT a deliverable; mirrors _h2_fetch_google). The cookieless /search?tbm=isch GET returns 200 but google's "enable JavaScript" interstitial (/httpservice/retry/enablejs) -- so the results are JS-rendered, NOT a cookie/consent wall. This probe now measures the NO-JS google endpoints (gbv=1 basic HTML, asearch=ichunk async image fragment, udm=2 modern vertical) to see which, if any, yields PARSEABLE image results without a JS engine. Fresh TLS+ALPN-h2 connection per path. No nghttp2/curl/python.

dependencies 7 imports · 0 importers

nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_tls13_client_validate_certifica nx_tls13_client_h2run.nx nx_https_url_for_fetch.nx nx_https_url_connect.nx nx_h2_client_over_tls.nx _h2_probe_imgsearch.nx

imports: nx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_h2run.nxnx_https_url_for_fetch.nxnx_https_url_connect.nxnx_h2_client_over_tls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

none

functions

16func _pi_puts(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: pi_fetch
17func _pi_num(v: i64) -> i64 { let bb: *u8=sys_mmap(28); var m: i64=v; if m<0{m=0-m;sys_write(1,"-" as *u8,1)}; let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48;k=1}; while m>0{t[k]=48+(m%10);m=m/10;k=k+1}; var i: i64=0; while i<k{bb[i]=t[k-1-i];i=i+1}; sys_write(1,bb,k); return 0 }
18func _pi_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
21func pi_fetch(store: *TrustStore, label: *u8, path: *u8) -> i64
51func main() -> i64