Re: cfhttp does not post zip files
Ah. My bad. That attribute was added as of 6.1 Ok, back to the beginning. What did you specify in the cfhttp line as far as file, value, type and name params? On 8/11/05, Jonathon Adam [EMAIL PROTECTED] wrote: CF 5 ~| 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:214723 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=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfhttp does not post zip files
Thanks for hanging in there! - This is the CF code that doesn't work: 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 - This is the HTML code that does work: form method=POST action=https://xxx.xxx.xxx.xxx:7443/name/ocrservlet?encrstr=342j43kn234kii342342kbh3243; ENCTYPE=multipart/form-data pbfont size=3 color=#484848Transaction Test - Upload Data File/font/b/p table tr td class=odd width=76strongData File:/strong/td td class=odd colspan=2 width=828input type=file name=F1 size=30 class=in/td /tr /table INPUT TYPE=submit NAME=submit VALUE=Submit INPUT TYPE=reset /form From: Jerry Johnson [EMAIL PROTECTED] Reply-To: cf-talk@houseoffusion.com To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfhttp does not post zip files Date: Fri, 12 Aug 2005 09:21:13 -0400 Ah. My bad. That attribute was added as of 6.1 Ok, back to the beginning. What did you specify in the cfhttp line as far as file, value, type and name params? On 8/11/05, Jonathon Adam [EMAIL PROTECTED] wrote: CF 5 ~| 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:214735 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=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfhttp does not post zip files
Just out of curiosity have you tried CFHTTPPARAM TYPE=formfield NAME=f1 file=C:\...blah blah ?? I don't know if it will work or not, but I'd try it at least. I'm not a cfhttp expert. Dave -Original Message- From: Jonathon Adam [mailto:[EMAIL PROTECTED] Sent: Friday, August 12, 2005 9:48 AM To: CF-Talk Subject: Re: cfhttp does not post zip files [snip] CFHTTPPARAM TYPE=FILE NAME=F1 FILE=C:\inetpub\wwwroot\dev\fileTransfer\export\DATE_OURAPP_TO_YOURAPP.zip [snip] ** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| 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:214786 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=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfhttp does not post zip files
All suggestions welcome. I tried that earlier. Just as you said, out of curiosity. Changing the attribute to formfield changes the file attribute to value CFHTTPPARAM TYPE=FORMFIELD NAME=F1 VALUE=C:\inetpub\wwwroot\pimsdev\fileTransfer\export\a.zip Doesn't pass the file. From: [EMAIL PROTECTED] Reply-To: cf-talk@houseoffusion.com To: CF-Talk cf-talk@houseoffusion.com Subject: RE: cfhttp does not post zip files Date: Fri, 12 Aug 2005 11:21:29 -0500 Just out of curiosity have you tried CFHTTPPARAM TYPE=formfield NAME=f1 file=C:\...blah blah ?? I don't know if it will work or not, but I'd try it at least. I'm not a cfhttp expert. Dave -Original Message- From: Jonathon Adam [mailto:[EMAIL PROTECTED] Sent: Friday, August 12, 2005 9:48 AM To: CF-Talk Subject: Re: cfhttp does not post zip files [snip] CFHTTPPARAM TYPE=FILE NAME=F1 FILE=C:\inetpub\wwwroot\dev\fileTransfer\export\DATE_OURAPP_TO_YOURAPP.zip [snip] ** The information contained in this message, including attachments, may contain privileged or confidential information that is intended to be delivered only to the person identified above. If you are not the intended recipient, or the person responsible for delivering this message to the intended recipient, ALLTEL requests that you immediately notify the sender and asks that you do not read the message or its attachments, and that you delete them without copying or sending them to anyone else. ~| 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:214797 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=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfhttp does not post zip files
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 ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214622 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
Re: cfhttp does not post zip files
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: cf-talk@houseoffusion.com To: CF-Talk cf-talk@houseoffusion.com 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
Re: cfhttp does not post zip files
If you look at the documentation for the cfhttp tag, it has a multipart attribute (not enctype, not mimetype). cfhttp ... multipart=yes That should get you there. On 8/11/05, Jonathon Adam [EMAIL PROTECTED] wrote: Thanks for the reply. If you are talking about something like this it didnt work. ~| 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:214651 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=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfhttp does not post zip files
Great info Jerry, thank you. I applied the extra attribute (which I dont see in the tag library) and received a different message: FILECONTENT Connection Failure HEADER MIMETYPE Unable to determine MIME type of file. RESPONSEHEADER STATUSCODE Connection Failure. Status code unavailable. Since HTML code works and cfhttp doesnt, is the mime format being preented different between the two submissions? In theory should they just be able to open up what type of file they are expecting? Sorry for all the questions. This one stumps me. -- From: Jerry Johnson [EMAIL PROTECTED] Reply-To: cf-talk@houseoffusion.com To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfhttp does not post zip files Date: Thu, 11 Aug 2005 16:44:45 -0400 If you look at the documentation for the cfhttp tag, it has a multipart attribute (not enctype, not mimetype). cfhttp ... multipart=yes That should get you there. On 8/11/05, Jonathon Adam [EMAIL PROTECTED] wrote: Thanks for the reply. If you are talking about something like this it didnt work. ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214660 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=89.70.4 Donations Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfhttp does not post zip files
I failed to ask the first, most obvious question. What version of CF? On 8/11/05, Jonathon Adam [EMAIL PROTECTED] wrote: Great info Jerry, thank you. I applied the extra attribute (which I dont see in the tag library) and received a different message: ~| 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:214671 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
Re: cfhttp does not post zip files
CF 5 From: Jerry Johnson [EMAIL PROTECTED] Reply-To: cf-talk@houseoffusion.com To: CF-Talk cf-talk@houseoffusion.com Subject: Re: cfhttp does not post zip files Date: Thu, 11 Aug 2005 17:50:36 -0400 I failed to ask the first, most obvious question. What version of CF? On 8/11/05, Jonathon Adam [EMAIL PROTECTED] wrote: Great info Jerry, thank you. I applied the extra attribute (which I dont see in the tag library) and received a different message: ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:214689 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