Re: Sending a HTTP form (searching the right framework/class-library)
Re: Sending a HTTP form (searching the right framework/class-library)
- Subject: Re: Sending a HTTP form (searching the right framework/class-library)
- From: email@hidden
- Date: Sun, 8 Feb 2004 14:56:05 -0500 (EST)
Well I have the bug reporter frame work I did which would send data to a
cgi script via POST or via the user's machine's email. You'd acctually be
using perl or something similar and would not be sending an http form,
depending on what you use, the information may not even have to conform to
any special format. The perl script that comes with my framework however
will not meet your needs. It handles sending large string data items.
Technically though if no alteration at all in the structure is made it
can be written to your hd on the other end as is and opened as nsdata or
an image or whatever. I could be wrong about the transport, but your
talking about needing something on the server to take and then send the
data. An app to package it in a transportable way on the sending machine.
Usually a string. And then a way to write it on the other end, which
should be easy if you can just convert the nsimage data into a string.
[NSString stringWithFormat:@"%@",imageData]; I'd do some local machine
testing first. Make the data transportable, and then resave it and make
sure it is reconsituted correctly.
I'm not an expert though. My part of transport usually occurs at the
server. Flash, perl, whatever. But I know that my experience with scripts
dictates that your data must be a string. Your server script must separate
the data from the text or message part, or your program must send them
separately. Or you need to learn the protocols for MIME/yENC/base64
whatever, so that it can be seen correctly in email as an attachment.
personally I'd find out if I could use an app on the server, and write a
server side c++ or c app for this. same url scheme applies
http://www.yourdomain.com/cgi-bin/theCapp?<all data here>
youd have more power over moving the data or placing it on the server or
what ever.
anyway my framework if you want to play with it is:
http://lazee.lunasitelabs.com/bugreport.php
P.S. any bad advice I've given I am sure will be soundly corrected...
Since I've never done this type of thing (never needed too) I'm simply
expressing where I would start from in my planning notebook while watching
STTNG and chewing my "planning pen" LOL.
>
Hi all!
>
>
I want to send a HTTP form (using the POST method). The form contains
>
strings, and images. The images, however, are NSImage objects (i.e. I
>
cannot specify a path on the harddisk, but I need to send these NSImage
>
objects, if that is possible at all).
>
I am not very familiar with the HTTP protocol nor with CoreFoundation.
>
>
Does anybody know of a framework/class-library which will help me here?
>
I've heard of CURLHandle and of the OMNI frameworks (OWF and
>
OmniNetworking). Ideally, i would simply have to add my objects
>
(strings, images, etc.) to a container object, set the URL, maybe some
>
other parameters too, and then invoke a "-send" ... (i wish :-)
>
>
Any suggestions?
>
>
Bye
>
Michael
>
>
PS: If you feel like it, don't hesitate to send code examples as I can
>
use any kind of help here ;-)
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.