• 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
Re: Upload large file using HTTP request
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Upload large file using HTTP request


  • Subject: Re: Upload large file using HTTP request
  • From: Alexander von Below <email@hidden>
  • Date: Fri, 20 Jun 2008 09:19:52 +0200

Yes. In my case, I have subclassed NSMutableHTTPRequest to create such a multipart form body

Alex

Am 20.06.2008 um 00:17 schrieb James Bucanek:

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

_______________________________________________ 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>
References: 
 >Upload large file using HTTP request (From: James Bucanek <email@hidden>)

  • Prev by Date: CFWriteStreamWrite Blocking if we give invalid Host.
  • Next by Date: Re: Upload large file using HTTP request
  • Previous by thread: Re: Upload large file using HTTP request
  • Next by thread: Re: Upload large file using HTTP request
  • Index(es):
    • Date
    • Thread