File size is only one piece of evidence

The same file can have different byte counts in a browser, curl, and a proxy statement. Compression, request and response headers, TLS tunnels, redirects, and failed retries affect the comparison. A saved file describes its content size; it cannot by itself prove whether a gateway meter at a different point is correct.

Ask where measurement occurs: application body, forwarded proxy stream, or another network layer. Establish whether upload and download are added, how handshakes and failures are treated, whether zero-data connections are charged, and whether rounding happens per event or after aggregation. Establish these boundaries for each protocol rather than assuming every request behaves like a tunnel.

Align units and the applicable price

A Byte and a bit are different units. Mbps is a rate, not accumulated consumption. If a quote is per GB, confirm whether that means one billion bytes or another convention. Do not multiply a rounded display of GB by the price to audit a charge; obtain original byte counts and the monetary precision.

This is an arithmetic example, not a HBridg price or measurement: 200,000 uploaded bytes plus 800,000 downloaded bytes equals 1,000,000 bytes. With a hypothetical contract using decimal GB at CNY 20 per GB and no additional rounding, the charge is CNY 0.02. A different measurement point or minimum charge invalidates that direct comparison.

Build a small reconciliation chain

  1. Preserve the currency, price, unit, effective time, and customer-price version. Confirm that the displayed quote actually applies to the charge.
  2. Upload and download known-size data against a destination you own. Fix the protocol, disable extra retries and redirects initially, and record each group's start and end time.
  3. Collect destination request counts, client transfer statistics, gateway upload/download records, and the ledger reference. Include connection reuse and failures.
  4. Recalculate using the stated billing rule. Compare the ledger, balance changes, and resource reservations separately. Investigate the measurement boundary before masking a discrepancy with further top-ups.

curl's size_download helps compare response bodies; its official documentation explicitly excludes headers and metadata. size_upload supplies upload statistics, but client transfer figures should not be treated as the total traffic across a proxy chain. Obtain evidence from the appropriate layer for headers, encrypted framing, or retries, without logging sensitive request contents.

Separate resource periods from traffic

Time and bandwidth tiers introduce period boundaries, idle charging, minimum periods, early stopping, and release-failure rules. A bandwidth limit is not a consumed byte count. Download volume cannot reconstruct a periodic fee. Separate total funds, reserved funds, and available funds as well: a reservation is not necessarily a settled charge.

For HBridg, verify displayed personal quotes, configuration drafts, and executed billing separately. This article does not treat a quote page as proof that the execution engine used that price. For a dispute, supply redacted references, the time window, and your calculation to support, then reconcile before expanding usage.

Sources

This original guide borrows topic organization from Proxyway Guides, without external prices or samples. See curl downloaded bytes, curl uploaded bytes, and curl write-out variables. Contract-specific metering and rounding need separate confirmation.

← Back to articles