Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File upload with NSURLRequest fails



On Fri, Mar 14, 2008 at 12:43 AM, Ben Lachman <email@hidden> wrote:
> I do this with a perl script on the back end.  My experience was that
>  its was more cajoling the perl script into working that the PHP side,
>  but that may be because I'm not much of a perl wizard (maybe only
>  level 8 or so :-).  I found it was important to declare a filename if
>  you're transferring data like this.

After much close looking, someone told me to count the dashes.  Turns
out I was using the wrong number for my multipart boundaries.  The
actual boundaries need to have two more dashes than the boundary
declaration in the content-type header.  Once I fixed that, my code
worked.

-- 
Tom Harrington
email@hidden
AIM: atomicbird1
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >File upload with NSURLRequest fails (From: "Tom Harrington" <email@hidden>)
 >Re: File upload with NSURLRequest fails (From: Ben Lachman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.