An interim100 response is not a completed upload
Everything curl documents curl's use of Expect for some uploads and its configurable wait. Actual behavior depends on the client version, request and protocol; HTTP/2 does not use the same connection-management rationale. MDN describes417 as an expectation that cannot be met. Neither reference proves that AISwapLab currently returns 417 or promises a particular interim response. The product's confirmed upload response and owned file ID remain the evidence needed for a reference.
What to do next
- 01
Observe the pre-body exchange safely
Check the installed client version and negotiated HTTP version. In a controlled trace, distinguish request headers sent, interim100, final417 and the moment body bytes begin. Strip credentials and private content before sharing anything: verbose output can contain the actual Authorization header. Use a small synthetic local handshake fixture when investigating client behavior. A pause by itself does not establish that Expect is present or that the server rejected anything.
- 02
Adjust only the demonstrated incompatibility
If the identified route or intermediary mishandles Expect, review the client's documented wait control or targeted removal of that header. curl documents --expect100-timeout and an empty Expect header as options; choose them based on the actual failure rather than applying a global workaround. Keep normal form-data construction, authentication and file limits intact. Removing Expect can send the body before a server's early rejection, so it can change transfer cost and exposure without fixing invalid input.
- 03
Confirm the upload before using its identifier
After a justified transport correction, repeat the upload stage through the supported route and inspect its final response. A 100 acknowledgement, progress animation or finished body transmission is not a successful owned upload ID. Do not invent an ID for quoting or generation. If any creation was separately submitted, recover that existing task rather than assuming an upload diagnostic permits a fresh paid attempt.
A concrete example
Illustrative local fixture: an HTTP/1.1 test gateway returns 417 immediately after receiving Expect, without reading the synthetic multipart body. The client record shows a final rejection, not a damaged image. A targeted compatibility test then sends the same approved envelope under the chosen client policy and verifies its final upload response. No production probe or paid generation was performed for this example.
Before you call it ready
- The trace identifies a real Expect exchange rather than an assumed cause.
- Interim100 and final upload success are recorded as different events.
- Any client-policy change preserves normal multipart construction and credential handling.
When to stop or choose another method
Stop tuning Expect when the evidence instead shows a file-validation error, an unrelated network timeout or an already accepted job. Fix the observed layer and keep raw credentialed traces private.
