Opened 4 years ago

Closed 4 years ago

#16671 closed bug (fixed)

BUrlProtocolListener UploadProgress incomplete

Reported by: kallisti5 Owned by: nobody
Priority: normal Milestone: R1/beta3
Component: Kits/Network Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

BUrlProtocolListener::UploadProgress seems incomplete. The Listener never fires when uploading a document via a form post.

A quick grep shows it's never called on HttpRequest:

/Data/Code/trackipfs> grep -R "UploadProgress" ../haiku/src/kits/network/libnetapi/Http*
/Data/Code/trackipfs> grep -R "DownloadProgress" ../haiku/src/kits/network/libnetapi/Http*
../haiku/src/kits/network/libnetapi/HttpRequest.cpp:                                    fListener->DownloadProgress(this, bytesReceived,

Example usage is BProtocolListener monitoring a HTTP POST via:

BHttpForm form;
form.AddFile("file", *file);
BHttpRequest* request = ...
request->SetMethod(B_HTTP_POST);
request->SetPostFields(form);
thread_id thread = request-> Run();
wait_for_thread(thread, NULL);

Change History (2)

comment:2 by kallisti5, 4 years ago

Milestone: UnscheduledR1/beta3
Resolution: fixed
Status: newclosed
Version: R1/beta2R1/Development

Resolved via hrev54796

Note: See TracTickets for help on using tickets.