Find Jobs
Hire Freelancers

C# .NET2.0 HTTP POST w/progress

$30-50 USD

Đã hủy
Đã đăng vào gần 18 năm trước

$30-50 USD

Thanh toán khi bàn giao
I need example (functional) C# code for a desktop .NET2.0 application that will make an HTTP POST and access the progress. The purpose is to send a file with form data and/or XML payload and provide feedback for its progress. Send performance should not be impacted e.g. by writing 1 byte at a time to the buffer. The current solution is using WebRequest and writing to the buffer in larger chunks but this seems clunky and does not provide smooth progress. An ideal solution would report the packets sent as opposed buffered (or even better, ACK'd). Functionality for the following would be required. Transparent cookie management would be beneficial. Progress should be via an event. SetHeaders(headers) //this would set custom headers (or overiride existing) for both the following methods PostMultipart(fields,file,url) //fields is an list of name value pairs //file is the name of the part and the file path PostData(data,url) //data would be a large chunk of XML or other data It seems that UploadProgressChangedEvent used with UploadDataAsync results in an inaccurate progress; whilst UploadFileAsync works there appears to be no way to add additional parts (fields/name value pairs). See below for an example multipart construct with two value fields and a file. If progress worked with UploadDataAsync this multipart data could be constructed seperately and used with it just as an XML payload would, but it does not as far as I can tell. If UploadFileAsync could accept additional parts (or UploadValuesAsync could accept a file part) that would still leave the need for a XML payload method. --0xKhTmLbOuNdArY Content-Disposition: form-data; name="field1" Value1 --0xKhTmLbOuNdArY Content-Disposition: form-data; name="field2" field2 --0xKhTmLbOuNdArY Content-Disposition: form-data; name="field3"; filename="[login to view URL]" Content-Type: image/jpeg Content-Transfer-Encoding: binary ...binarydata... --0xKhTmLbOuNdArY-- ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables): a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment. b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request. 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement). ## Platform WinXP (optionally Win2k and Win98). Use of .NET2.0 classes is acceptable so long as they meet the requirements.
Mã dự án: 3703290

Về dự án

3 đề xuất
Dự án từ xa
Hoạt động 18 năm trước

Bạn muốn kiếm tiền?

Lợi ích khi chào giá trên Freelancer

Thiết lập ngân sách và thời gian
Nhận thanh toán cho công việc
Phác thảo đề xuất của bạn
Miễn phí đăng ký và cháo giá cho công việc
3 freelancer chào giá trung bình $27 USD cho công việc này
Avatar người dùng
See private message.
$34 USD trong 7 ngày
5,0 (4 nhận xét)
0,6
0,6
Avatar người dùng
See private message.
$21,25 USD trong 7 ngày
0,0 (1 nhận xét)
0,7
0,7
Avatar người dùng
See private message.
$25,50 USD trong 7 ngày
0,0 (1 nhận xét)
0,0
0,0

Về khách hàng

Cờ của FRANCE
Carcassonne, France
5,0
10
Phương thức thanh toán đã xác thực
Thành viên từ thg 11 21, 2005

Xác thực khách hàng

Cảm ơn bạn! Chúng tôi đã gửi email chứa đường link để bạn lấy tín dụng miễn phí.
Đã xảy ra lỗi trong khi gửi email của bạn. Hãy thử lại.
Người Dùng Đã Đăng Ký Tổng Số Việc Đã Đăng
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Đang tải xem trước
Đã cấp quyền truy cập vị trí.
Phiên đăng nhập của bạn đã hết hạn và bạn đã bị đăng xuất. Hãy đăng nhập lại.