Asked 8 years ago. Active 8 years ago. Viewed 1k times. Open, FileAccess. Read buffer, 0, buffer. Close ; postDataWriter. The documentation only says: The request body must contain the zip file. Sharun Sharun 2, 6 6 gold badges 25 25 silver badges 57 57 bronze badges. Add a comment. Active Oldest Votes. The curl command you use send the entire zip file contents in the body, plain and simple.
Daniel Stenberg Daniel Stenberg My question is just how to do what you suggested. I mean, how should I modify the code, so that the request body contains only the zip file and the request become as simple as the cURL request. I don't know C and I'm not the person to ask.
Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.
Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it.
Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. Showing file upload progress with httpwebrequest. Post status Facebook using httpwebrequest. Multiple httpwebrequest concurrently.
Flush shouldn't have a negative effect on the filter - have to look at that. Thanks for reporting back that's good to know and have on record here Thomas Wetterer August 30, Now the first request with an not gzip enabled browser happens. And so AcceptEncoding. Contains does not work. Justin February 15, Flush and Response.
End are used. Srikanth March 05, FYI Looks like someone have answered the issue, for Response. Filter is System. GZipStream Response. Flush ; Response.
End I test with. RB October 20, Can any one tell me how to decode or decompress the gzip content before i display it on page. InnerXml; Response. Write "Gzip content is not decoded. Poul Bak October 26, This page is NOT served as gzip or deflate!
So far, I have had only partly success with gzip and ONLY for the html part no css, js and certainly not dynamic resources. If all other resources must be served without compression, I don't think it's worth the trouble. I mean, if it actually worked, we would all use it. The fact that so few asp. Jader Dias March 24, IndexOf "gzip"! Decompress ; this. IndexOf "deflate"! Luc January 21, I am working on a finance application which needs very fast access to content available on the internet and using gzip means I can scrape at incredibly fast speeds.
Fabio Zilberman February 04, Now I am posting large strings and wanted to gzip them. I am able to gzip the request on the PDA but not to un-gzip the full request on the aspx page. Form "dataB" do something with dataA and dataB Response. I tried doing this Request.
GZipStream Request. InputStream, System. Decompress and this Request. Filter, System. Decompress previous to using the Request. Form lines, but didn't work Thanks a lot Fabio. Any ideas? There may be no header, in which case the standard is to accept any encoding.
0コメント