title: how to use ASIHTTPRequest Class for post request to upload a text file to server?
body: <p>I am working on an upload code which will upload the file to the server, which is successfully working</p>
  
  <p>now what I need as fallows:</p>
  
  <p>started with an example-->suppose I have a file named file.txt, whose size is 30MB, when I read the contents of the file it will give me all the 30MB it contains. In the sendSynchronousRequest method I want to give request upto 10mb of data and aging calling the same thing unless it reaches at the last point of file. (in brief I want to use a loop to send the request part by part to the server</p>
  
  <p>to solve the purpose i  read form <a href="http://allseeing-i.com/ASIHTTPRequest/How-to-use" rel="nofollow">http://allseeing-i.com/ASIHTTPRequest/How-to-use</a> and Included the ASIHTTPRequest in to my project after inclusion i want to do the same , that will accept a block of data (even via a POST) then append that block of data to a file. It seems to me that you need some kind of client side app that will take a file and break it up into chunks, then send it to your web service one chunk at a time. </p>
  
  <p>My problems:
  -how to sent a Post Request from ASIHTTPRequest with a chunk of data?
  -do i need to change the PHP  ?</p>
  
  <p>Can any one post a piece of code for both php and ASIHTTPRequest so that i can take a reference from their. </p>
  
  <p>Thank you guys for your continuos support .</p>