RE: HTTP POST multipart/form-data?
RE: HTTP POST multipart/form-data?
- Subject: RE: HTTP POST multipart/form-data?
- From: "Don MacAskill" <email@hidden>
- Date: Fri, 11 Apr 2003 10:34:59 -0700
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden] On Behalf Of Emmanuel
>
Sent: Friday, April 11, 2003 4:59 AM
>
To: email@hidden
>
>
At 5:29 PM -0700 10/04/03, <email@hidden> wrote:
>
>Hey there,
>
>
>
>I'm trying to script a batch file upload via HTTP POST using
>
AppleScript.
>
>After looking at IE's dictionary, it looked like I could
>
just use 'OpenURL'
>
>with a 'MIME Type' of 'multipart/form-data' and be set.
>
(Had to create
>
>the correctly-formatted 'FormData' of course, but I did that).
>
>
Logically, uploading would be a job, either for URL Access
>
Scripting's "upload", or for curl.
>
Being new to AppleScript, I may be missing something, but I thought URL
Access was for FTP uploads? I'm trying to do an upload via HTTP POST, using
a form of type 'multipart/form-data'. FTP isn't really an option.
>
>Does anyone know if this is possible? I can easily do it
>
using cURL,
>
>but then I lose the nice page after the upload and whatnot.
>
>
Sorry, I'm not sure I understand that statement. Could you
>
restate for a Frenchie ?
>
Sure. :) By scripting Internet Explorer (or even Safari) to do the HTTP
POST instead of cURL, I get a nice response page in IE. I suppose I can
fetch the results from curl and display them in IE, but there are a couple
of other benefits too ('do shell script' is limited to 65000 characters, for
example, and if we're trying to upload a few hundred files, we may run out).
I'd really prefer to go through a web browser if it's possible, basically.
Thanks!
Don
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.