Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dear All,
Iam using REST web service and We have to send frequent PUT requests with large XML files (70+ MB) Wouldn't it make sense for the browsers to compress large form posts before sending them to the server ,So is this a solved problem on the server side or does each web application have to handle it

is there any thing i can add in my java script header to compress data before sending to server side
in my javascript i have already used

JavaScript
$.ajax({
       type: 'PUT',
       url: URI,
       contentType: 'application/json; charset=utf-8',
       data: "XmLData",
       dataType: 'text',
       accept: 'application/json charset=utf-8'
   }).done(function (ResultData) {
       $('#dvResult').text(ResultData);
   }).error(function (jqXHR, textStatus, errorThrown) {
       $('#dvResult').text(jqXHR.responseText || textStatus);
   });

thanks
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900