Thanks for the reply.

If you are talking about something like this it didnt work.

<CFHTTP
URL="https://xxx.xxx.xxx.xxx:7443/name/ocrservlet?encrstr=342j43kn234kii342342kbh3243";
METHOD="POST"
ENCTYPE="multipart/form-data"
>

Additionally, I forgot to say that I tried
<CFHTTPPARAM TYPE="FILE" NAME="F1" 
FILE="C:\inetpub\wwwroot\pimsdev\fileTransfer\export\a.zip"
MIMETYPE="application/x-zip-compressed"
>
Here are the other mimetypes attempted:
application/x-compress
application/x-compressed
application/zip
multipart/x-zip

Here is the code I receive back when I process through a HTML form (which 
works):
PARAMS:
submit=Submit
encrstr=342j43kn234kii342342kbh3243

FILES:
name: F1
filename: DATE_OURAPP_TO_YOURAPP.zip
originalFilename: DATE_OURAPP_TO_YOURAPP.zip
type: application/x-zip-compressed
f.toString(): C:\Import\DATE_OURAPP_TO_YOURAPP.zip
f.getName(): DATE_OURAPP_TO_YOURAPP.zip
f.exists(): true
f.length(): 1027

Thanks again,

>From: Jerry Johnson <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: CF-Talk <[email protected]>
>Subject: Re: cfhttp does not post zip files
>Date: Thu, 11 Aug 2005 15:47:48 -0400
>
>you might need to specify the multipart attribute, to send the data as
>a multipart/form-date content-type.
>
>On 8/11/05, Jonathon Adam <[EMAIL PROTECTED]> wrote:
> > I am trying to post a .zip file to a server outside our
> > firewall/environment, but the CFHTTP with POST doesn't post the file. 
>The
> > code does work with .txt and .xml files. In addition to testing .txt and
> > ..xml files, I wrote a basic HTML POST form and was able to manually 
>transfer
> > the .zip file successfully. This process is being run on CF 5 and CFFTP 
>is
> > not a option for this task.
> >
> > Here is what I am using:
> > <CFHTTP
> > 
>URL="https://xxx.xxx.xxx.xxx:7443/name/ocrservlet?encrstr=342j43kn234kii342342kbh3243";
> > METHOD="POST">
> > <CFHTTPPARAM TYPE="FILE" NAME="F1"
> > 
>FILE="C:\inetpub\wwwroot\dev\fileTransfer\export\DATE_OURAPP_TO_YOURAPP.zip">
> > </CFHTTP>
> >
> > Here is what I receive after attempting to post a zip file with cfhttp:
> > CONNECTION : close
> > CONTENT-LANGUAGE : en-US
> > CONTENT-TYPE : text/plain
> > EXPLANATION : OK
> > HTTP_VERSION : HTTP/1.1
> > SERVER : WebSphere Application Server/5.1
> > STATUS_CODE : 200
> >
> > Thanks for your assistance
> >
> >
> >
> >
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214639
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to