• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Upload large file using HTTP request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Upload large file using HTTP request


  • Subject: Upload large file using HTTP request
  • From: James Bucanek <email@hidden>
  • Date: Thu, 19 Jun 2008 15:17:38 -0700

Greetings,

I'm looking for some advice. I'd like to add a command to my Cocoa program so that users can upload diagnostic and performance reports to my server.

My idea was to create a single ZIP file with the data and send it to a special Java Server Page on my Xserve via an HTTP request. The JSP page would then unzip the file and digest the results. I know that an HTML page can be set up to upload a file as part of a form. I believe it's just a matter of creating a multi-part form request with the correct encoding type.

I'm assuming that it would be possible to construct such a request programmatically, but I'm a bit fuzzy on where to begin. I've never actually used any of the Cocoa HTTP communication classes -- beyond that, I'm a fairly seasoned Cocoa developer with a modest understanding of network communications.

Thanks in advance ...
--
James Bucanek

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Upload large file using HTTP request
      • From: Alexander von Below <email@hidden>
    • Re: Upload large file using HTTP request
      • From: Jens Alfke <email@hidden>
  • Prev by Date: OpenTransport
  • Next by Date: Re: Upload large file using HTTP request
  • Previous by thread: Re: OpenTransport
  • Next by thread: Re: Upload large file using HTTP request
  • Index(es):
    • Date
    • Thread