Re: grabbing data from a POST

2008-05-10 Thread Joshua Paul
Likely a comma vs. semi-colon in an NSString on a 13" monitor bug. ;-) If you look at the headers from the request (sent earlier in this thread) you'll see it. On May 10, 2008, at 3:21 PM, Chuck Hill wrote: Ah ha! :-) What caused this? Is it an iPhone bug? Chuck On May 10, 2008, at 3:

Re: grabbing data from a POST

2008-05-10 Thread Chuck Hill
Ah ha! :-) What caused this? Is it an iPhone bug? Chuck On May 10, 2008, at 3:17 PM, Joshua Paul wrote: We found the issue. It was a misplaced comma, instead of a semi- colon following "multipart/form-data" in the request. Thanks everyone. On May 9, 2008, at 10:55 AM, Chuck Hill wrote:

Re: grabbing data from a POST

2008-05-10 Thread Joshua Paul
We found the issue. It was a misplaced comma, instead of a semi-colon following "multipart/form-data" in the request. Thanks everyone. On May 9, 2008, at 10:55 AM, Chuck Hill wrote: Use a hex editor to look at the raw requests. Years ago there was a similar problem with IE where the reques

Re: grabbing data from a POST

2008-05-09 Thread Chuck Hill
Use a hex editor to look at the raw requests. Years ago there was a similar problem with IE where the request was missing a ^M/carriage return after the content boundary. This sounds like a similar problem: you are receiving a malformed request. We fixed it by hacking, er cleverly alteri

Re: grabbing data from a POST

2008-05-09 Thread Chuck Hill
On May 9, 2008, at 9:55 AM, Joshua Paul wrote: FWIW, I get the following when grabbing this.request().contents() in the DirectAction: values: (stream [EMAIL PROTECTED] of length 418147), has NOT been accessed> I can then write the WOInputStreamData out to disk. Within that file, I se

Re: grabbing data from a POST

2008-05-09 Thread Joshua Paul
FWIW, I get the following when grabbing this.request().contents() in the DirectAction: values: (stream [EMAIL PROTECTED] of length 418147), has NOT been accessed> I can then write the WOInputStreamData out to disk. Within that file, I see: Content-Disposition: form-data; name="

Re: grabbing data from a POST

2008-05-09 Thread David LeBer
On 9-May-08, at 12:47 PM, Joshua Paul wrote: I followed the link, but I can't seem to get to the multipart iterator... In your directAction: WOMultipartIterator mpi = request().multipartIterator(); Doesn't work? Anyone else? Help?! On May 9, 2008, at 2:14 AM, Stefan Klein wrote: Hi,

Re: grabbing data from a POST

2008-05-09 Thread Joshua Paul
I followed the link, but I can't seem to get to the multipart iterator... Anyone else? Help?! On May 9, 2008, at 2:14 AM, Stefan Klein wrote: Hi, seems to be a problem with FileUpload. I never done this using a direct action. I think the following may be a good starting point: http://ww

Re: grabbing data from a POST

2008-05-09 Thread Mike Schrag
WOMultipartIterator multipartIterator = context().request().multipartIterator(); WOFormData formData = null; while ((formData = multipartIterator.nextFormData()) != null) { String name = formData.name(); InputStream is = formData.formDataInputStream(); .

Re: grabbing data from a POST

2008-05-09 Thread Stefan Klein
Hi, seems to be a problem with FileUpload. I never done this using a direct action. I think the following may be a good starting point: http://www.mail-archive.com/webobjects-dev@lists.apple.com/msg04304.html Stefan Joshua Paul schrieb: headers: {remote_host = (::1); user-agent = (CFNetwork/

Re: grabbing data from a POST

2008-05-09 Thread Joshua Paul
headers: {remote_host = (::1); user-agent = (CFNetwork/221.5); document_root = (/Library/WebServer/Documents); server_name = (localhost); accept = (*/*); remote_addr = (::1); content-type = ("multipart/form-data, boundary=0194784892923"); server_admin = ([EMAIL PROTECTED] ); remote_port = (5

Re: grabbing data from a POST

2008-05-09 Thread Stefan Klein
Hi, what did you see using: NSLog.debug.appendln("headers: " + request().headers()); NSLog.debug.appendln("keys: " + request().formValueKeys()); NSLog.debug.appendln("values: " + request().formValues()); Stefan Joshua Paul schrieb: That's just it, when I do that I get a N

Re: grabbing data from a POST

2008-05-09 Thread Joshua Paul
That's just it, when I do that I get a NPE. If I grab this.request().content() and write it to disk, I can see that the data is there (Content-Disposition, etc.). Other thoughts? On May 9, 2008, at 12:16 AM, Stefan Klein wrote: Hi, you can use request().formValueForKey("Filedata") in your

Re: grabbing data from a POST

2008-05-09 Thread Stefan Klein
Hi, you can use request().formValueForKey("Filedata") in your DirectAction Stefan Joshua Paul schrieb: I have data coming into my app via a POST in a DirectAction. I can obtain the data via: (WOInputStreamData) this.request().content() But that's where I'm stumped. Once I've grabbed the

grabbing data from a POST

2008-05-08 Thread Joshua Paul
I have data coming into my app via a POST in a DirectAction. I can obtain the data via: (WOInputStreamData) this.request().content() But that's where I'm stumped. Once I've grabbed the raw data, how can I extract the form information/data from it? Content-Disposition: form-