• 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:22:28 +0200

Opps, sorry, I need to correct myself!

I have NOT subclassed the NSMutableHTTPRequest, but that is what I am using for transport. My form poster is just a subclass of NSObject.

That said, you could probably go the approach to subclass the request, but there are some caveats (namely, a deep copy of the request is made for the actual connection)

Alex

Am 20.06.2008 um 09:19 schrieb Alexander von Below:

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

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

  • Prev by Date: Re: Upload large file using HTTP request
  • Next by Date: Problem closing CFWriteStream [moved from darwin-dev, as it seems more appropriate here]
  • Previous by thread: Re: Upload large file using HTTP request
  • Next by thread: CFWriteStreamWrite Blocking if we give invalid Host.
  • Index(es):
    • Date
    • Thread