Re: CFHTTP Question
>Were CARs available in CF5? If so and the servers' configs are supposed to >be the same, id go that route first. > >Maybe a setting was just missed somewhere in the cf admin. > >.:.:.:.:.:.:.:.:.:.:.:.:.:. >Bobby Hartsfield >http://acoderslife.com >http://cf4em.com > Unfortunately, the last server is dead and even if CARs were available, not sure if they actually were, I can't get to the old server. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343213 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question [spamtrap bayes][spamtrap heur]
On 3/22/2011 5:03 AM, Dave Watts wrote: > Well, it's not a matter of having a "correct" character set - it's > rather a matter of both sides agreeing which one to use. If you're in the case of a cf5 server, it only understands latin-1 (ISO-8859-1). ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343187 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFHTTP Question
Were CARs available in CF5? If so and the servers' configs are supposed to be the same, id go that route first. Maybe a setting was just missed somewhere in the cf admin. .:.:.:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com http://cf4em.com -Original Message- From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] Sent: Monday, March 21, 2011 5:48 PM To: cf-talk Subject: Re: CFHTTP Question If it is a charset issue, do you know how to configure CF for the correct charset. I have clients that are hitting this page by posting straight to it. It would be much easier to change my server since it is on my network. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343186 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
> If it is a charset issue, do you know how to configure CF for the correct > charset. I have clients that are > hitting this page by posting straight to it. It would be much easier to > change my server since it is on > my network. Well, it's not a matter of having a "correct" character set - it's rather a matter of both sides agreeing which one to use. If you're using a modern version of CF on the server receiving the post, I'd guess it's using UTF-8. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsit ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343185 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
If it is a charset issue, do you know how to configure CF for the correct charset. I have clients that are hitting this page by posting straight to it. It would be much easier to change my server since it is on my network. Thanks. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343184 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
> Thanks Dave. This code hasn't changed in 4 years and it only started > "misparsing" the form data when the action > page was moved to another server, so this seems like there is an issue with > the Coldfusion service on the server. > I have the same action page on several different servers. I can change the > URL in my CFHTTP and it will work on > certain servers and it won't work on other servers. There is no encoding > changes or anything, just the URL that the > CFHTTP is posting too. Right, but that's what I'm getting at. Those other servers may be expecting a specific charset. > This is a CF 5.5 server. Do you think there is a patch that needs to be > applied? No. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or ons ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343183 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
> There are two things I can think of off the top of my head, that you > might do. > > First, you might just take a shot in the dark and play with encoding. > You can specify the appropriate encoding for your form post from > CFHTTP using the CHARSET attribute. > > Second, you might want to compare a good request with a bad one - you > can capture HTTP requests on the client using various tools that > record and/or proxy HTTP traffic. You could make a request from a > browser on the same server that's running the CFHTTP tag. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsi Thanks Dave. This code hasn't changed in 4 years and it only started "misparsing" the form data when the action page was moved to another server, so this seems like there is an issue with the Coldfusion service on the server. I have the same action page on several different servers. I can change the URL in my CFHTTP and it will work on certain servers and it won't work on other servers. There is no encoding changes or anything, just the URL that the CFHTTP is posting too. This is a CF 5.5 server. Do you think there is a patch that needs to be applied? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343182 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
> Yes, it's a typo. I was tying to reproduce what debug shows which is a > variable name : value, in this case the value > is John&MiddleName=James&LastName=Smith. These values are being passed via 3 > separate httpparams with > type of formfield. I've tested the "action" page on another server and it > works correctly. There are two things I can think of off the top of my head, that you might do. First, you might just take a shot in the dark and play with encoding. You can specify the appropriate encoding for your form post from CFHTTP using the CHARSET attribute. Second, you might want to compare a good request with a bad one - you can capture HTTP requests on the client using various tools that record and/or proxy HTTP traffic. You could make a request from a browser on the same server that's running the CFHTTP tag. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsi ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343181 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
>Are you sure the form hasn't somehow changed method from POST to GET ? > >On Mon, Mar 21, 2011 at 8:53 PM, Donnie Carvajal < >donnie.carva...@transformyx.com> wrote: > >> The code hasn't been touched in 4 years, besides, if the CFHTTP method was set to Get, Form Variables wouldn't be available in the debug info and URL Variables would be present. Thanks for replying ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343179 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
> Are you sure the form hasn't somehow changed method from POST to GET ? That's the way the data normally looks like when you do a POST with the default MIME type application/x-www-urlencoded. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343178 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
Are you sure the form hasn't somehow changed method from POST to GET ? On Mon, Mar 21, 2011 at 8:53 PM, Donnie Carvajal < donnie.carva...@transformyx.com> wrote: > > > Is the space and colon between FirstName and John a typo? Because if > > not, that's your problem right there, it should be > > FirstName=John&MiddleName=James&LastName=Smith. > > > > Dave Watts, CTO, Fig Leaf Software > > http://www.figleaf.com/ > > http://training.figleaf.com/ > > > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > > GSA Schedule, and provides the highest caliber vendor-authorized > > instruction at our training centers, online, or > onsit > > Yes, it's a typo. I was tying to reproduce what debug shows which is a > variable name : value, in this case the value is > John&MiddleName=James&LastName=Smith. These values are being passed via 3 > separate httpparams with type of formfield. I've tested the "action" page > on another server and it works correctly. > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343177 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
> Is the space and colon between FirstName and John a typo? Because if > not, that's your problem right there, it should be > FirstName=John&MiddleName=James&LastName=Smith. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsit Yes, it's a typo. I was tying to reproduce what debug shows which is a variable name : value, in this case the value is John&MiddleName=James&LastName=Smith. These values are being passed via 3 separate httpparams with type of formfield. I've tested the "action" page on another server and it works correctly. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343176 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Question
> I recently moved an app to a new server and for some reason, when I run a > CFHTTP post request to a page on the > new server, the form fields are being interpreted as one field and the value > of the field is a query string. The file that > is running the CFHTTP is on a differnt server. For example, if the form > fields are > > FirstName: John > MiddleName: James > LastName: Smith > > the Coldfusion debug shows the following for Form fields > > FirstName :John&MiddleName=James&LastName=Smith > > Does anyone know why one server would work correctly and see all 3 fields and > another server won't parse the fields correctly? Is the space and colon between FirstName and John a typo? Because if not, that's your problem right there, it should be FirstName=John&MiddleName=James&LastName=Smith. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsit ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:343175 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: cfhttp QUESTION
On 11/8/06, Robert Harrison <[EMAIL PROTECTED]> wrote: > Now I'm canning the EXCEL COM object and using CFHTTP to parse a comma > delimited format. This works fine when the data is perfect. But when this > data is missing a column from a row and doen't have the right number of > columns it says wrong number of rows and craps out. Sorry, been busy staging a picture for Bobby, with me holding a wooden table over my head, pretending to smash down on the camera. =-P I've got some code that uses the JExcelAPI to import/export excel files. I already tackled all the issues with not the same number of cols, etc., along with a little date conversion and some other little tweaks. JExcelAPI roxerz! I'll post a link, if I think about it, as I've got it in google code somewhere... I may have posted a link already, not too sure. You'd need createobject permission, if you're on a shared server. Ping me off list if you're still looking for a excel solution- I'm busy and haven't been watching cf-talk too close. -D ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260119 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfhttp QUESTION (ISSUE SOLVED)
Thanks for the input everyone. I solved the problem by adjusting the Excel template. I added an automunber column as the last column in the template and hid it. That ensured every record had the same number of elements now matter what the user entered. This now allows users to users to download an Excel template, populate that template with data, then upload the complete spreadsheet to mass populate a data base. The program parses the spreadsheet, validates the data, updates a data base and all relational records, etc. This allows users to add/update records in mass. It is working now. It was a pain to work with but it's a nice feature for the users. Thanks for the help. Robert Harrison ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259765 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfhttp QUESTION
Robert, It is a known issue that all of the CF list functions ignore empty list elements "a,,c" is a list with two elements, not three. There are some UDFs somewhere out there to deal with this. One quick fix I've seen is to replace ",," with ",!," (where "!" is something special that you don't expect in the input). This will turn empty list elements in "!", which you then has to test for. Mark -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Thursday, November 09, 2006 9:04 AM To: CF-Talk Subject: RE: cfhttp QUESTION Why does your data file not have the right number of columns? Is that our of your control? ... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Robert Harrison [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 3:31 PM To: CF-Talk Subject: cfhttp QUESTION Now I'm canning the EXCEL COM object and using CFHTTP to parse a comma delimited format. This works fine when the data is perfect. But when this data is missing a column from a row and doen't have the right number of columns it says wrong number of rows and craps out. Here's a perfect data set... this works: Email Address,First Name,Last Name,Company,Title,Address Line 1,Address Line 2,City,State,Zip,Phone,Fax,Website [EMAIL PROTECTED],Avi,Hayon,, [EMAIL PROTECTED],Anthony V.,Ambrose RPLU,, [EMAIL PROTECTED],Arturo,Antezan,, [EMAIL PROTECTED],Anthony R.,Armstrong,, [EMAIL PROTECTED],Arthur,Baden,, [EMAIL PROTECTED],Alan H.,Barbanel,, [EMAIL PROTECTED],Abbey M.,Gallegos,, [EMAIL PROTECTED],Amy J.,Berezein,, When the data looks like this (an actual Excel csv file) it craps: [EMAIL PROTECTED],Avi,Hayon,, [EMAIL PROTECTED],Anthony V.,Ambrose RPLU,, [EMAIL PROTECTED],Arturo,Antezan,, [EMAIL PROTECTED],Anthony R.,Armstrong,, [EMAIL PROTECTED],Arthur,Baden,, [EMAIL PROTECTED],Alan H.,Barbanel,, [EMAIL PROTECTED],Abbey M.,Gallegos [EMAIL PROTECTED],Amy J.,Berezein Any ideas Thanks, Robert ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259761 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: cfhttp QUESTION
Why does your data file not have the right number of columns? Is that our of your control? .. Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -Original Message- From: Robert Harrison [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 08, 2006 3:31 PM To: CF-Talk Subject: cfhttp QUESTION Now I'm canning the EXCEL COM object and using CFHTTP to parse a comma delimited format. This works fine when the data is perfect. But when this data is missing a column from a row and doen't have the right number of columns it says wrong number of rows and craps out. Here's a perfect data set... this works: Email Address,First Name,Last Name,Company,Title,Address Line 1,Address Line 2,City,State,Zip,Phone,Fax,Website [EMAIL PROTECTED],Avi,Hayon,, [EMAIL PROTECTED],Anthony V.,Ambrose RPLU,, [EMAIL PROTECTED],Arturo,Antezan,, [EMAIL PROTECTED],Anthony R.,Armstrong,, [EMAIL PROTECTED],Arthur,Baden,, [EMAIL PROTECTED],Alan H.,Barbanel,, [EMAIL PROTECTED],Abbey M.,Gallegos,, [EMAIL PROTECTED],Amy J.,Berezein,, When the data looks like this (an actual Excel csv file) it craps: [EMAIL PROTECTED],Avi,Hayon,, [EMAIL PROTECTED],Anthony V.,Ambrose RPLU,, [EMAIL PROTECTED],Arturo,Antezan,, [EMAIL PROTECTED],Anthony R.,Armstrong,, [EMAIL PROTECTED],Arthur,Baden,, [EMAIL PROTECTED],Alan H.,Barbanel,, [EMAIL PROTECTED],Abbey M.,Gallegos [EMAIL PROTECTED],Amy J.,Berezein Any ideas Thanks, Robert ~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:259760 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: cfhttp question.
If they're on the same server why not just cfinclude the form? -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, March 23, 2006 3:39 PM To: CF-Talk Subject: RE: cfhttp question. > I've been messing around with cfhttp to grab content locally > to get the dynamic content and write it to a static page. > > What I've been trying to do is to find out if there is a way > to get cfhttp to save the page without parsing the actual cfm code.. > > Basicly, the page includes a simple cfmail form. At the > beginning, it checks to see if the form was submitted, if > not, is will display the form. However, when I crab the page > via cfhttp, it removes the actual cfml code and only the form > is contained in the file so it won't work. > > Is there anyway to put something like a start and end comment > into the actual page so that cfhttp will parse everything but > still leave the code intact between the start and end tags? CFHTTP doesn't parse your CF code. It acts just like a browser - it requests a URL, and gives you whatever is returned from that URL. If you use CFHTTP to fetch a CF URL, the CF server will process the request just like if you'd made it from a browser. So, the short answer is, no, you can't get CFHTTP to behave the way you want it to. If you want to be able to fetch the CF code, and you're running both scripts on the same server, use CFFILE instead of CFHTTP. If the scripts are on different servers, you're out of luck unless you control both servers - in that case, you could write one program to read another using CFFILE, then call that program from the other server using CFHTTP. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236125 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 question.
So I'm guessing that you want to make the parts of your page static to reduce the load? You could do something like this by including the "non parsed" code through a variablesomething like... #nonparsed# If you cfhttp'd the above file, and then saved it again with a .cfm extension, the "non parsed" code should still be intact and run when the new file is called. On 3/23/06, Chris Bunting <[EMAIL PROTECTED]> wrote: > Hello, > I've been messing around with cfhttp to grab content locally to get the > dynamic content and write it to a static page. > > What I've been trying to do is to find out if there is a way to get cfhttp to > save the page without parsing the actual cfm code.. > > Basicly, the page includes a simple cfmail form. At the beginning, it checks > to see if the form was submitted, if not, is will display the form. However, > when I crab the page via cfhttp, it removes the actual cfml code and only the > form is contained in the file so it won't work. > > Is there anyway to put something like a start and end comment into the actual > page so that cfhttp will parse everything but still leave the code intact > between the start and end tags? > > > > MYCODE > > MYFORM > > > > Thanks for your time, > Chris > > ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236102 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 question.
> I've been messing around with cfhttp to grab content locally > to get the dynamic content and write it to a static page. > > What I've been trying to do is to find out if there is a way > to get cfhttp to save the page without parsing the actual cfm code.. > > Basicly, the page includes a simple cfmail form. At the > beginning, it checks to see if the form was submitted, if > not, is will display the form. However, when I crab the page > via cfhttp, it removes the actual cfml code and only the form > is contained in the file so it won't work. > > Is there anyway to put something like a start and end comment > into the actual page so that cfhttp will parse everything but > still leave the code intact between the start and end tags? CFHTTP doesn't parse your CF code. It acts just like a browser - it requests a URL, and gives you whatever is returned from that URL. If you use CFHTTP to fetch a CF URL, the CF server will process the request just like if you'd made it from a browser. So, the short answer is, no, you can't get CFHTTP to behave the way you want it to. If you want to be able to fetch the CF code, and you're running both scripts on the same server, use CFFILE instead of CFHTTP. If the scripts are on different servers, you're out of luck unless you control both servers - in that case, you could write one program to read another using CFFILE, then call that program from the other server using CFHTTP. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236100 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 Question
Also, if this version can be determined can it be changed? >-Original Message- > From: John Stanley > Sent: Thursday, November 11, 2004 2:47 PM > To: '[EMAIL PROTECTED]' > Subject:CFHttp Question > > I am using CFHttp to send xml. Is there a way to see what version of > XML is being sent when I use a cfhttpparam tag of type xml and just send > some xml like this? > > something here > > John Stanley > Web Application Developer > http://www.activeaero.com > 734-547-7277 > > ~| Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net http://www.cfhosting.net Message: http://www.houseoffusion.com/lists.cfm/link=i:4:184007 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 Question!
Sorry If you question is "can I read ASP sessions" the answer is no. You cannot get "sessions" in Cold Fusion without the tag (sessionmanagement="YES"). so... if you are trying to pass a session variable to CF from an ASP page it will have to be done using post or get (url or form or possibly cookie variables). If you are rewriting the whole thing, then start with the tag and build a session scope with the variables you need (like user.supportuser). Does this help? -Mark -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2003 9:48 AM To: CF-Talk Subject: Re:CFHTTP Question! Can somebody please advise me what to do? >I took your advise Stephen and copied the contents of the include file >into a new file and saved it as a coldfusion file. I am using >cfinclude to call this file. There is a "if" condition in the include >file which is in asp. > ><% >if session("user.supportuser") = "TRUE" then >%> > >Do Something > ><% >end if >%> > >I am trying to re-write this in coldfusion but I don't know how to do >it. It is probably a silly question, but can ColdFusion read an asp >session variable? I have tried to dump the session scope but get an >error. I don't have a application.cfm file. If I can get this working >then my problem is solved. > >Stephen Moritti's post > >As a side thought > >If that menu.asp is actually just a bunch of html with no asp code in > >there, the you could just use to drag it into your cf code. > > >Or you could bin that asp junk altogether and. ~joking~ ;o) [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFHTTP Question!
ooh Dave - how does that work? Sounds interesting. -Mark -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 1:27 PM To: CF-Talk Subject: RE: CFHTTP Question! > so what are you suggesting? How do I use HTTP authentication > mechanism? As Jochem stated, you can't do this with CFHTTP alone. You will need to use an NTLM proxy if you can. This would sit between CF and the target server, somewhere. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFHTTP Question!
> so what are you suggesting? How do I use HTTP authentication > mechanism? As Jochem stated, you can't do this with CFHTTP alone. You will need to use an NTLM proxy if you can. This would sit between CF and the target server, somewhere. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFHTTP Question!
It's look for domain based authentication (not clear text obviously) - meaning you are NOT going to be able to use CFHTTP to get this page. -Mark -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 10:58 AM To: CF-Talk Subject: Re:CFHTTP Question! When I output the http response headers, this is what gets displayed Output the Response Headers: Date : Mon, 20 Oct 2003 15:20:34 GMT Server : Microsoft-IIS/5.0 Content-Length : 4431 Content-Type : text/html Explanation : Access Denied Connection : close Status_Code : 401 WWW-Authenticate : NTLM Http_Version : HTTP/1.1 Does anybody have any ideas? [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFHTTP Question!
ColdFusion Programmer wrote: > so what are you suggesting? How do I use HTTP authentication mechanism? "I doubt that is implemented in cfhttp." Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFHTTP Question!
ColdFusion Programmer wrote: > > Date : Mon, 20 Oct 2003 15:20:34 GMT > Server : Microsoft-IIS/5.0 > Content-Length : 4431 > Content-Type : text/html > Explanation : Access Denied > Connection : close > Status_Code : 401 > WWW-Authenticate : NTLM > Http_Version : HTTP/1.1 > > Does anybody have any ideas? According to the web server, you need to use HTTP authentication (mechanism described in RFC 2617) using the propietary NTLM system from Microsoft. I doubt that is implemented in cfhttp. Jochem [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFHTTP Question!
If you are actually on the ColdFusion server can you browse to that same URL? André -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: 17 October 2003 16:55 To: CF-Talk Subject: Re:CFHTTP Question! When I browse the asp file in the browse, it displays the menu on the browser. This is the url I'm using: http://myProject/site/includes/topmenu/folder2/menu.asp But when I include this url in cfhttp I get You are not authorized to view this page You do not have permission to view this directory or page using the credentials you supplied. error. Here is my code: METHOD="GET" RESOLVEURL="true" throwonerror="yes"/> #CFHTTP.FileContent# Am I missing some attributes in my cfhttp tag? >Allan, > >What is the URL you need to type into a browser in order to run >menu.asp? > >That is the URL you need to specify for using CFHTTP. > >(Remember when using CFHTTP it is the ColdFusion server running the >request so the URL needs to be from the perspective of what the >ColdFusion server can see the menu.asp page as which could mean using a >127.0.0.1 or localhost address since it is on the same server. Also, in >general better to use IP addresses to avoid domain name resolution >issues though you loose the obvious benefits.) > >André > >-Original Message- >From: Allan Clarke [mailto:[EMAIL PROTECTED] >Sent: 17 October 2003 16:01 >To: CF-Talk >Subject: CFHTTP Question! > >Hello everybody, > >I'm trying to call a .asp file from my coldfusion page >using cfhttp and I keep getting errors. Both files are >on the same server, just different folders under the >site webroot. >This should explain it: > >The ColdFusion file is in >C:\Inetpub\wwwroot\myProject\pages\folder1\searchreport.cfm > >and the ASP file is in >C:\Inetpub\wwwroot\myProject\site\includes\topmenu\folder2\menu.asp. > >Can somebody show me how to use cfhttp to call the asp >file (menu.asp) in my coldfusion file >(searchreport.cfm) > >Many Thanks >Allan > >__ >Do you Yahoo!? >The New Yahoo! Shopping - with improved product search >http://shopping.yahoo.com > _ > > _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
Re: CFHTTP Question!
As a side thought If that menu.asp is actually just a bunch of html with no asp code in there, the you could just use to drag it into your cf code. Or you could bin that asp junk altogether and. ~joking~ ;o) Andre Mohamed wrote: > Allan, > > > What is the URL you need to type into a browser in order to run > menu.asp? > > > That is the URL you need to specify for using CFHTTP. > > > (Remember when using CFHTTP it is the ColdFusion server running the > request so the URL needs to be from the perspective of what the > ColdFusion server can see the menu.asp page as which could mean using a > 127.0.0.1 or localhost address since it is on the same server. Also, in > general better to use IP addresses to avoid domain name resolution > issues though you loose the obvious benefits.) > > > André > > > -Original Message- > From: Allan Clarke [mailto:[EMAIL PROTECTED] > Sent: 17 October 2003 16:01 > To: CF-Talk > Subject: CFHTTP Question! > > > Hello everybody, > > I'm trying to call a .asp file from my coldfusion page > using cfhttp and I keep getting errors. Both files are > on the same server, just different folders under the > site webroot. > This should explain it: > > The ColdFusion file is in > C:\Inetpub\wwwroot\myProject\pages\folder1\searchreport.cfm > > and the ASP file is in > C:\Inetpub\wwwroot\myProject\site\includes\topmenu\folder2\menu.asp. > > Can somebody show me how to use cfhttp to call the asp > file (menu.asp) in my coldfusion file > (searchreport.cfm) > > Many Thanks > Allan > > __ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > _ > > [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFHTTP Question!
Most likely there are directory permissions setup on this folder and that you are logged into your network with an account that has permission to view this directory. Which is why you are able to browse the file. However CFHTTP can not because it is making a request like I would be if I where to click the link. I can not verify that this is the problem because you left your domain out of the URL that you provided. -Original Message- From: ColdFusion Programmer [mailto:[EMAIL PROTECTED] Sent: Friday, October 17, 2003 10:55 AM To: CF-Talk Subject: Re:CFHTTP Question! When I browse the asp file in the browse, it displays the menu on the browser. This is the url I'm using: http://myProject/site/includes/topmenu/folder2/menu.asp [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFHTTP Question!
Allan, What is the URL you need to type into a browser in order to run menu.asp? That is the URL you need to specify for using CFHTTP. (Remember when using CFHTTP it is the ColdFusion server running the request so the URL needs to be from the perspective of what the ColdFusion server can see the menu.asp page as which could mean using a 127.0.0.1 or localhost address since it is on the same server. Also, in general better to use IP addresses to avoid domain name resolution issues though you loose the obvious benefits.) André -Original Message- From: Allan Clarke [mailto:[EMAIL PROTECTED] Sent: 17 October 2003 16:01 To: CF-Talk Subject: CFHTTP Question! Hello everybody, I'm trying to call a .asp file from my coldfusion page using cfhttp and I keep getting errors. Both files are on the same server, just different folders under the site webroot. This should explain it: The ColdFusion file is in C:\Inetpub\wwwroot\myProject\pages\folder1\searchreport.cfm and the ASP file is in C:\Inetpub\wwwroot\myProject\site\includes\topmenu\folder2\menu.asp. Can somebody show me how to use cfhttp to call the asp file (menu.asp) in my coldfusion file (searchreport.cfm) Many Thanks Allan __ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com _ [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]
RE: CFHTTP question
Bryan, Thanks for all the help. :) John At 12:58 PM 9/24/2002 -0700, you wrote: >here is my suggestion... > > >// find the second anchor tag >artistIndex = find("cfhttp.filecontent)+2); >// strip everything before the second anchor tag >content = removeChars(cfhttp.filecontent,1,artistIndex); >// artist name is all text between start and end anchor tags >artistName = listRest(listFirst(content,"<"),">"); >// strip characters up to and including the first tag >content = removeChars(content,1,find("",content)+3); >// song name is all text before next tag >songName = listFirst(content,"<"); > > >+---+ >Bryan Love > Macromedia Certified Professional > Internet Application Developer > Database Analyst >TeleCommunication Systems >[EMAIL PROTECTED] >+---+ > >"...'If there must be trouble, let it be in my day, that my child may have >peace'..." > - Thomas Paine, The American Crisis > >"Let's Roll" > - Todd Beamer, Flight 93 > > > >-Original Message- >From: John Gedeon [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, September 24, 2002 10:20 AM >To: CF-Talk >Subject: RE: CFHTTP question > > >Bryan > below is the snapshot of the data i have. I want to get the artist name >and song name in this case it is "Castlevania, Dracula New Class" and >"Vampire Killer" > >John > > background="http://www.streamingsoundtracks.com/images/bg_name.gif"; >width="22%" nowrap>Visitors: style="">47 > Requests: 1/Hour > Listeners: 149/185 > background="http://www.streamingsoundtracks.com/images/bg_name.gif"; >width="56%" nowrap> > href="http://www.amazon.com/exec/obidos/external-search/?mode=music&tag=nopa >tience&keyword=Castlevania, >Dracula New Class">Castlevania, Dracula New Class > - href="http://www.amazon.com/exec/obidos/external-search/?mode=music&tag=nopa >tience&keyword=Konami">Konami > Vampire Killer (7:05) > src="http://www.streamingsoundtracks.com/images/simages/fourh.gif"; >border="0"> > > > > background="http://www.streamingsoundtracks.com/images/bg_name.gif"; >width="22%"> > href="http://www.streamingsoundtracks.com/cgi-bin/rating/stars/stars.pl?Cast >levania_DNC">Rate >It > > > >At 10:10 AM 9/24/2002 -0700, you wrote: > >Text parsing is somewhat of a lost art. It's easy to do, but difficult to > >do well. Your question is too general for me to provide a detailed answer. > >If you want to provide a sample of the data you want to parse perhaps I can > >be of some help... > > > >+---+ > >Bryan Love > > Macromedia Certified Professional > > Internet Application Developer > > Database Analyst > >TeleCommunication Systems > >[EMAIL PROTECTED] > >+---+ > > > >"...'If there must be trouble, let it be in my day, that my child may have > >peace'..." > > - Thomas Paine, The American Crisis > > > >"Let's Roll" > > - Todd Beamer, Flight 93 > > > > > > > >-Original Message- > >From: John Gedeon [mailto:[EMAIL PROTECTED]] > >Sent: Tuesday, September 24, 2002 9:52 AM > >To: CF-Talk > >Subject: CFHTTP question > > > > > >I have a cfhttp get call to get another text webpage. I get the file fine > >but I want to parse out the useful data from that page that i get and I am > >not sure what the easiest way is. the data i am looking for is dynamic and > >can be one to many words. but it always starts at the same spot. whats the > >easiest way to parse it out.? > > > ><>< Proverbs 3:5 "Trust in the Lord with all your heart and lean not on > >your own understanding;" > > > > > > > > __ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
here is my suggestion... // find the second anchor tag artistIndex = find(""); // strip characters up to and including the first tag content = removeChars(content,1,find("",content)+3); // song name is all text before next tag songName = listFirst(content,"<"); +---+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst TeleCommunication Systems [EMAIL PROTECTED] +---+ "...'If there must be trouble, let it be in my day, that my child may have peace'..." - Thomas Paine, The American Crisis "Let's Roll" - Todd Beamer, Flight 93 -Original Message- From: John Gedeon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 10:20 AM To: CF-Talk Subject: RE: CFHTTP question Bryan below is the snapshot of the data i have. I want to get the artist name and song name in this case it is "Castlevania, Dracula New Class" and "Vampire Killer" John http://www.streamingsoundtracks.com/images/bg_name.gif"; width="22%" nowrap>Visitors: 47 Requests: 1/Hour Listeners: 149/185 http://www.streamingsoundtracks.com/images/bg_name.gif"; width="56%" nowrap> http://www.amazon.com/exec/obidos/external-search/?mode=music&tag=nopa tience&keyword=Castlevania, Dracula New Class">Castlevania, Dracula New Class - http://www.amazon.com/exec/obidos/external-search/?mode=music&tag=nopa tience&keyword=Konami">Konami Vampire Killer (7:05) http://www.streamingsoundtracks.com/images/simages/fourh.gif"; border="0"> http://www.streamingsoundtracks.com/images/bg_name.gif"; width="22%"> http://www.streamingsoundtracks.com/cgi-bin/rating/stars/stars.pl?Cast levania_DNC">Rate It At 10:10 AM 9/24/2002 -0700, you wrote: >Text parsing is somewhat of a lost art. It's easy to do, but difficult to >do well. Your question is too general for me to provide a detailed answer. >If you want to provide a sample of the data you want to parse perhaps I can >be of some help... > >+---+ >Bryan Love > Macromedia Certified Professional > Internet Application Developer > Database Analyst >TeleCommunication Systems >[EMAIL PROTECTED] >+---+ > >"...'If there must be trouble, let it be in my day, that my child may have >peace'..." > - Thomas Paine, The American Crisis > >"Let's Roll" > - Todd Beamer, Flight 93 > > > >-Original Message- >From: John Gedeon [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, September 24, 2002 9:52 AM >To: CF-Talk >Subject: CFHTTP question > > >I have a cfhttp get call to get another text webpage. I get the file fine >but I want to parse out the useful data from that page that i get and I am >not sure what the easiest way is. the data i am looking for is dynamic and >can be one to many words. but it always starts at the same spot. whats the >easiest way to parse it out.? > ><>< Proverbs 3:5 "Trust in the Lord with all your heart and lean not on >your own understanding;" > > > __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
Bryan below is the snapshot of the data i have. I want to get the artist name and song name in this case it is "Castlevania, Dracula New Class" and "Vampire Killer" John http://www.streamingsoundtracks.com/images/bg_name.gif"; width="22%" nowrap>Visitors: 47 Requests: 1/Hour Listeners: 149/185 http://www.streamingsoundtracks.com/images/bg_name.gif"; width="56%" nowrap> http://www.amazon.com/exec/obidos/external-search/?mode=music&tag=nopatience&keyword=Castlevania, Dracula New Class">Castlevania, Dracula New Class - http://www.amazon.com/exec/obidos/external-search/?mode=music&tag=nopatience&keyword=Konami";>Konami Vampire Killer (7:05) http://www.streamingsoundtracks.com/images/simages/fourh.gif"; border="0"> http://www.streamingsoundtracks.com/images/bg_name.gif"; width="22%"> http://www.streamingsoundtracks.com/cgi-bin/rating/stars/stars.pl?Castlevania_DNC";>Rate It At 10:10 AM 9/24/2002 -0700, you wrote: >Text parsing is somewhat of a lost art. It's easy to do, but difficult to >do well. Your question is too general for me to provide a detailed answer. >If you want to provide a sample of the data you want to parse perhaps I can >be of some help... > >+---+ >Bryan Love > Macromedia Certified Professional > Internet Application Developer > Database Analyst >TeleCommunication Systems >[EMAIL PROTECTED] >+---+ > >"...'If there must be trouble, let it be in my day, that my child may have >peace'..." > - Thomas Paine, The American Crisis > >"Let's Roll" > - Todd Beamer, Flight 93 > > > >-Original Message- >From: John Gedeon [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, September 24, 2002 9:52 AM >To: CF-Talk >Subject: CFHTTP question > > >I have a cfhttp get call to get another text webpage. I get the file fine >but I want to parse out the useful data from that page that i get and I am >not sure what the easiest way is. the data i am looking for is dynamic and >can be one to many words. but it always starts at the same spot. whats the >easiest way to parse it out.? > ><>< Proverbs 3:5 "Trust in the Lord with all your heart and lean not on >your own understanding;" > > > __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
Text parsing is somewhat of a lost art. It's easy to do, but difficult to do well. Your question is too general for me to provide a detailed answer. If you want to provide a sample of the data you want to parse perhaps I can be of some help... +---+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst TeleCommunication Systems [EMAIL PROTECTED] +---+ "...'If there must be trouble, let it be in my day, that my child may have peace'..." - Thomas Paine, The American Crisis "Let's Roll" - Todd Beamer, Flight 93 -Original Message- From: John Gedeon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 24, 2002 9:52 AM To: CF-Talk Subject: CFHTTP question I have a cfhttp get call to get another text webpage. I get the file fine but I want to parse out the useful data from that page that i get and I am not sure what the easiest way is. the data i am looking for is dynamic and can be one to many words. but it always starts at the same spot. whats the easiest way to parse it out.? <>< Proverbs 3:5 "Trust in the Lord with all your heart and lean not on your own understanding;" __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
If you're running MX maybe you could write a web service on each machine that would allow you to do what you want. I'm not sure CFHTTP is the thing you need. I could be wrong tho, it's been known to happen! Pete -Original Message- From: Yager, Brian T Contractor/NCCIM [mailto:[EMAIL PROTECTED]] Sent: 25 June 2002 16:34 To: CF-Talk Subject: CFHTTP question I have not used this tag at all. But in an effort to get CF used where I work, I told them I could do what I'm about to ask. Please tell me if this can be done. There are two seperate systems in different states. On is an ASP/SQL Server and the other Perl/Oracle (Unix). There is a firewall in front of the Unix machine. We need to get feeds from each to the other to populate/sync up each database. Can CFHTTP do this? I also recommended XML (WDDX) but we don't have the expertise yet. If CFHTTP can work, can some one please describe how it works so I can discuss it in my next meeting? Thanks all, Brian Yager President - North AL Cold Fusion Users Group http://www.nacfug.com Sr. Systems Analyst Sverdrup/CIC [EMAIL PROTECTED] (256) 842-8342 __ Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFHTTP question
CFHTTP, esentially simulates a browser with a program (your program). So, if you can communicate with both sites with a browser, then you can do it with a CF program using CFHTTP. To solve your particular problem, you could write a stub program for each of the target sites (one in Perl and one in VBS). The stubs would receive SQL Statements and data from your CF site (Form post of a WDDX packet) The stub would 1. deserialize the WDDX packet 2. issue the db request 3. serialize the results 4. return the results WDDX packet to the originator I have used this technique with great success in populating and synchronizing remote databases where I did not have admin privileges. HTH Dick On Tuesday, June 25, 2002, at 08:33 AM, Yager, Brian T Contractor/NCCIM wrote: > I have not used this tag at all. But in an effort to get CF used where > I work, > I told them I could do what I'm about to ask. Please tell me if this > can be > done. > > There are two seperate systems in different states. On is an ASP/SQL > Server and > the other Perl/Oracle (Unix). There is a firewall in front of the Unix > machine. > We need to get feeds from each to the other to populate/sync up each > database. > Can CFHTTP do this? I also recommended XML (WDDX) but we don't have the > expertise yet. If CFHTTP can work, can some one please describe how it > works so > I can discuss it in my next meeting? > > Thanks all, > > Brian Yager > President - North AL Cold Fusion Users Group > http://www.nacfug.com > Sr. Systems Analyst > Sverdrup/CIC > [EMAIL PROTECTED] > (256) 842-8342 > > __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
> I'm using the cfhttp tag to log into a site remotly and walk > around after being logged , the problem comes out when I meet > a link (that I need to call trough cfhttp too) like this: > http://skillport.nywir > ed.org/_SkillSoft_od_cgi/odisapi.dll?cmd=SummaryFrame&template= > SummaryCF.tpl&objname=COMM020100&surl=COMM020100/ > summary.htm&active=1&sessionid=mmr-0&time=142342', 1)" > Any ideas?? . I don't see how to call javascript code with > this tag. Any ideas?? The problem with trying to "walk" JS hyperlinks is that you'd have to write something to read, decode and completely understand what's going on in the JS function - say they hyperlink is built of 5 strings, then you'd have to manage that Generally, I'd say to avoid them, unless you write some rules as to what to follow - to a person's eye, the above code will be obvious, but you try telling your code how to understand that! Philip Arnold Technical Director Certified ColdFusion Developer ASP Multimedia Limited Switchboard: +44 (0)20 8680 8099 Fax: +44 (0)20 8686 7911 www.aspmedia.co.uk www.aspevents.net An ISO9001 registered company. ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfhttp question
You bet -Original Message- From: Fisichella [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 9:59 AM To: CF-Talk Subject: Re: cfhttp question Thanks a lot Steve. Thanks. - Original Message - From: "Steven Dworman" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 9:37 PM Subject: RE: cfhttp question > http://devex.allaire.com/developer/gallery/info.cfm?id=CA3471D5-2830-11D4-AA > 9700508B94F380&method=full > > -Original Message- > From: Fisichella [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 13, 2001 9:36 AM > To: CF-Talk > Subject: cfhttp question > > > Hi, > > I'm using cfhttp to grab quotes from yahoo finances. The code is like > below : > > > url="http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=sl1d1t1c1ohgv&e > =.csv" method="GET" resolveurl="true"> > > #cfhttp.filecontent# > > The mime-type: > #cfhttp.mimetype# > The Status Code: > #cfhttp.statuscode# > The Raw Header: > #cfhttp.header# > > > > > If I run this page, I got the following error : > > The requested file is not ASCII text and can not be rendered. > > But if I change the url into http://finance.yahoo.com , it will works... > any idea why ??? > > Does anyone has a better idea how to get quotes, I decide to get it from > yahoo, cause I don't know where I have to go to get this quotes ??? Does > anyone ever do this before ??? One more thing, it causes the page really > slow if I use cfhttp, any better idea beside scheduler ??? > > > Thanks, > > > Fisichella. > > > ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: cfhttp question
Thanks a lot Steve. Thanks. - Original Message - From: "Steven Dworman" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 9:37 PM Subject: RE: cfhttp question > http://devex.allaire.com/developer/gallery/info.cfm?id=CA3471D5-2830-11D4-AA > 9700508B94F380&method=full > > -Original Message- > From: Fisichella [mailto:[EMAIL PROTECTED]] > Sent: Thursday, December 13, 2001 9:36 AM > To: CF-Talk > Subject: cfhttp question > > > Hi, > > I'm using cfhttp to grab quotes from yahoo finances. The code is like > below : > > > url="http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=sl1d1t1c1ohgv&e > =.csv" method="GET" resolveurl="true"> > > #cfhttp.filecontent# > > The mime-type: > #cfhttp.mimetype# > The Status Code: > #cfhttp.statuscode# > The Raw Header: > #cfhttp.header# > > > > > If I run this page, I got the following error : > > The requested file is not ASCII text and can not be rendered. > > But if I change the url into http://finance.yahoo.com , it will works... > any idea why ??? > > Does anyone has a better idea how to get quotes, I decide to get it from > yahoo, cause I don't know where I have to go to get this quotes ??? Does > anyone ever do this before ??? One more thing, it causes the page really > slow if I use cfhttp, any better idea beside scheduler ??? > > > Thanks, > > > Fisichella. > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfhttp question
Try a couple things: 1. urlencode your url variables 2. try using the chr() function for the ^ character Mark -Original Message- From: Fisichella [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 9:36 AM To: CF-Talk Subject: cfhttp question Hi, I'm using cfhttp to grab quotes from yahoo finances. The code is like below : http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=sl1d1t1c1ohgv&e =.csv" method="GET" resolveurl="true"> #cfhttp.filecontent# The mime-type: #cfhttp.mimetype# The Status Code: #cfhttp.statuscode# The Raw Header: #cfhttp.header# If I run this page, I got the following error : The requested file is not ASCII text and can not be rendered. But if I change the url into http://finance.yahoo.com , it will works... any idea why ??? Does anyone has a better idea how to get quotes, I decide to get it from yahoo, cause I don't know where I have to go to get this quotes ??? Does anyone ever do this before ??? One more thing, it causes the page really slow if I use cfhttp, any better idea beside scheduler ??? Thanks, Fisichella. ~~ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: cfhttp question
http://devex.allaire.com/developer/gallery/info.cfm?id=CA3471D5-2830-11D4-AA 9700508B94F380&method=full -Original Message- From: Fisichella [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 13, 2001 9:36 AM To: CF-Talk Subject: cfhttp question Hi, I'm using cfhttp to grab quotes from yahoo finances. The code is like below : http://finance.yahoo.com/d/quotes.csv?s=^DJI&f=sl1d1t1c1ohgv&e =.csv" method="GET" resolveurl="true"> #cfhttp.filecontent# The mime-type: #cfhttp.mimetype# The Status Code: #cfhttp.statuscode# The Raw Header: #cfhttp.header# If I run this page, I got the following error : The requested file is not ASCII text and can not be rendered. But if I change the url into http://finance.yahoo.com , it will works... any idea why ??? Does anyone has a better idea how to get quotes, I decide to get it from yahoo, cause I don't know where I have to go to get this quotes ??? Does anyone ever do this before ??? One more thing, it causes the page really slow if I use cfhttp, any better idea beside scheduler ??? Thanks, Fisichella. ~~ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
> An Allaire consultant told us that our DNS was screwed up and > that it was our problem. Seems like you must be using our > internal DNS server, as well ;-) So we found out if you use > the actual IP address instead of the domain name, it usually > worked. In addition, we found the changing the slashes (/) to > (\) also helped. Until you can get Allaire to admit it is not > your DNS server, you are basically screwed. You can certainly determine for yourself whether your DNS server has problems - and it's not that uncommon to have small DNS problems here and there. There are plenty of DNS resources available: Acme Byte & Wire: http://www.acmebw.com/ This site, run by Liu and Larson, the authors of the O'Reilly DNS book, has lots of Q & A resources. DNS Expert: http://www.dnsexpert.com/ This retail software package does DNS diagnostics pretty well, for those who don't want to learn dig and nslookup. In any case, if you're able to resolve the target server's name from a command shell on the CF server, you shouldn't have any problems with CFHTTP and DNS. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFHTTP question
An Allaire consultant told us that our DNS was screwed up and that it was our problem. Seems like you must be using our internal DNS server, as well ;-) So we found out if you use the actual IP address instead of the domain name, it usually worked. In addition, we found the changing the slashes (/) to (\) also helped. Until you can get Allaire to admit it is not your DNS server, you are basically screwed. Date sent: Fri, 22 Dec 2000 09:43:12 -0600 From: [EMAIL PROTECTED] Subject:CFHTTP question Send reply to: [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> > I have been searching through the allaire boards and it seems either any > posts relating to using the CFHTTP questions either don't get answered > or get a beat around the bush kind of answer. I have a huge project > that is using the CFHTTP tag immensely only problem is i get the famous > "Connection Falure" error. I am not behind a proxy, firewall or > anything weird. Is there a setting somewhere that might block me from > using CFHTTP? Is Allaire ever going to fix this problem? > > Thanks, > Misty > > > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
> I have been searching through the allaire boards and it seems > either any posts relating to using the CFHTTP questions either > don't get answered or get a beat around the bush kind of answer. > I have a huge project that is using the CFHTTP tag immensely > only problem is i get the famous "Connection Falure" error. I > am not behind a proxy, firewall or anything weird. Is there a > setting somewhere that might block me from using CFHTTP? Is > Allaire ever going to fix this problem? The problem here is that diagnosing problems with an HTTP client run from a CF script isn't very easy. You don't know what's happening "behind the scenes" so to speak. You can find out, though, with a recording proxy, which you can pass your HTTP requests through. It'll write down the HTTP requests and responses, which might help you to diagnose the problem. Here are a couple that I've used successfully: Stretch: http://www.kestral.com.au/devtools/ HTTPSniffer (requires Perl): http://www.compansr.demon.co.uk/ The documentation for Stretch is nonexistent, but both tools are pretty easy to use. Simply run the utility with the IP address of the target server. Then, change your CFHTTP request so that it sends to the proxy instead of the target server - typically, you put the proxy on your web server, and it listens at port 8080 by default. Then, run your page and see what happens! Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFHTTP question
I have had problems with cfhttp. In one case it was my routing table on the server, and in another I was running a release candidate of W2K, the installation of the final release W2K server cleared up my remaining problems. If it helpful I can give you some server space for the interim to help with troubleshooting. ie to compare and environment that works vs one that doesn't. are you having intermittant problems? or just can't connect? Question for the group: Is it worth trying CFX_HTTP? Eric From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> Subject: CFHTTP question Date: Fri, 22 Dec 2000 09:43:12 -0600 I have been searching through the allaire boards and it seems either any posts relating to using the CFHTTP questions either don't get answered or get a beat around the bush kind of answer. I have a huge project that is using the CFHTTP tag immensely only problem is i get the famous "Connection Falure" error. I am not behind a proxy, firewall or anything weird. Is there a setting somewhere that might block me from using CFHTTP? Is Allaire ever going to fix this problem? Thanks, Misty ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
Do they have the latest service packs installed for 4.5.1? I think there were many problems reported with CFHTTP on 4.5 that have hopefully all been resolved with the service packs. hth, Tobe At 11:36 AM 12/22/2000 , you wrote: >no I dont think there is a need for encoding it, it is a straight URL no >paramters, sapces or whatever. Its just a call to a file on another >server. I used this tag on my home computer about 2 months ago and it >wored just fine. I have CF 4.0 at home. But on my hosting account they >have 4.5.1 and that is where it is not working. > >-Original Message- >From: ddewey [mailto:[EMAIL PROTECTED]] >Sent: Friday, December 22, 2000 10:06 AM >To: misty.d.woodward >Cc: ddewey >Subject: RE: CFHTTP question > > >I've found from my experience with CFHTTP, that it is very particular. >Are >you GETing or POSTing. Have you tried urlencoding() the actual URL that >you're trying to get? Does the URL you're trying to POST have a query >string? > >Inquiring minds want to know! > >Dan > >--- >Daniel Dewey|"According to the rule of averages, if you >Unix/Internet SysAdmin | stand with one foot in a bucket of ice, >MCP (NT srvr/wkstn/eprise) | and the other in a bed of hot coals, you >[EMAIL PROTECTED] | should be feeling fine" -- Unknown >http://www.pobox.com/~dewey | 610-868-1421, x115 >The National Association of Colleges and Employers > > These opinions are mine, and may not be the same as my employer > >-Original Message- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED]] >Sent: Friday, December 22, 2000 10:43 AM >To: CF-Talk >Subject: CFHTTP question > > >I have been searching through the allaire boards and it seems either any >posts relating to using the CFHTTP questions either don't get answered >or get a beat around the bush kind of answer. I have a huge project >that is using the CFHTTP tag immensely only problem is i get the famous >"Connection Falure" error. I am not behind a proxy, firewall or >anything weird. Is there a setting somewhere that might block me from >using CFHTTP? Is Allaire ever going to fix this problem? > >Thanks, >Misty > ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
RE: CFHTTP question
no I dont think there is a need for encoding it, it is a straight URL no paramters, sapces or whatever. Its just a call to a file on another server. I used this tag on my home computer about 2 months ago and it wored just fine. I have CF 4.0 at home. But on my hosting account they have 4.5.1 and that is where it is not working. -Original Message- From: ddewey [mailto:[EMAIL PROTECTED]] Sent: Friday, December 22, 2000 10:06 AM To: misty.d.woodward Cc: ddewey Subject: RE: CFHTTP question I've found from my experience with CFHTTP, that it is very particular. Are you GETing or POSTing. Have you tried urlencoding() the actual URL that you're trying to get? Does the URL you're trying to POST have a query string? Inquiring minds want to know! Dan --- Daniel Dewey|"According to the rule of averages, if you Unix/Internet SysAdmin | stand with one foot in a bucket of ice, MCP (NT srvr/wkstn/eprise) | and the other in a bed of hot coals, you [EMAIL PROTECTED] | should be feeling fine" -- Unknown http://www.pobox.com/~dewey | 610-868-1421, x115 The National Association of Colleges and Employers These opinions are mine, and may not be the same as my employer -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, December 22, 2000 10:43 AM To: CF-Talk Subject: CFHTTP question I have been searching through the allaire boards and it seems either any posts relating to using the CFHTTP questions either don't get answered or get a beat around the bush kind of answer. I have a huge project that is using the CFHTTP tag immensely only problem is i get the famous "Connection Falure" error. I am not behind a proxy, firewall or anything weird. Is there a setting somewhere that might block me from using CFHTTP? Is Allaire ever going to fix this problem? Thanks, Misty ~~ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: CFHTTP question
On 9/3/00, [EMAIL PROTECTED] penned: >Is there a way to actually extract information from URL's, like only the >information you want, instead of the other stuff that you don't want? If you view the source of the page you want, then say there is a section that always changes dynamically and that is what you are trying to get, and if you can find something before that that never changes then you would do a "find()" for that string, then add the number of characters to the position where you want to start your extraction. Same thing for the end. Then your subtract the start position from the end position and that would be the mid() function you would run on it. Example on a block of test that happens to be in a preformmated tag block: ", CFHTTP.FileContent)> ", CFHTTP.FileContent)> We add the begin + 6 so it includes the end pre tag. The find on returns the starting position of the < and we want the starting position of the >. So what you have is, if the first pre tag starts at position 400 and the end pre tag starts at position 600, then we want to extract (600 - 400 + 6) or 206 characters starting at position 400, or: #mid(CFHTTP.FileContent, begin, return)# Which in reality is: #mid(CFHTTP.FileContent, 400, 206)# You can basically search for any text that is never going to change and always be in the same position relative to the text you're trying to extract. If the beginning search string is before the text you want to extract, then add the number of characters (view the source, count the line breaks also) to the content you want to extract. Then you can add to the begin variable like this: Of course, if the code you are trying to search on has quotes or pound signs in it, then I like to create a variable called searchstring using the ascii code for the special characters. Example, looking for "> Then: Simple, huh? LOL -- Bud Schneehagen - Tropical Web Creations _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ ColdFusion Solutions / eCommerce Development [EMAIL PROTECTED] http://www.twcreations.com/ 954.721.3452 -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
RE: CFHTTP Question regarding Amazon : Was no title
> Any wrong with this? > > http://www.amazon.com" method=3D"get"> 1) the flat domain isn't a real page, it's an effective push page to; http://www.amazon.com/exec/obidos/subst/home/home.html/102-9560880-3392941 or something similar 2) you didn't put a subject line on the email so most people on this list will ignore the message 3) you sent the message in HTML format, so we see it with "=3D" instead of "=", so we can't copy and paste to check the code Philip Arnold ASP Multimedia Limited T: +44 (0)20 8680 1133 "Websites for the real world" ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
Re: CFHTTP Question
That was it. Thanks, I just overlooked that one. Man, if it was a snake I would be DEAD!! It happens to us all at one time or another. - Original Message - From: "David E. Crawford" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, August 07, 2000 1:32 PM Subject: Re: CFHTTP Question : This is a multi-part message in MIME format. : : --=_NextPart_000_0607_01C00095.813B5410 : Content-Type: text/plain; : charset="Windows-1252" : Content-Transfer-Encoding: quoted-printable : : CFHTTP QuestionYou have to specify the PORT as an attribute for CFHTTP = : as opposed to placing it directly in the URL. : : DC : : - Original Message -=20 : From: Randy Adkins=20 : To: [EMAIL PROTECTED]=20 : Sent: Monday, August 07, 2000 17:29 : Subject: CFHTTP Question : : : I am using an example straight out of the Advanced book of CF.=20 : I want to do a CFHTTP POST and post data to a form.=20 : : However using the exmaple shown below, I get a HTTP 404 Error.=20 : Both files reside in the same directory. I have checked and re-checked = : : the spelling of the files.=20 : : Any idea whats wrong?=20 : : THIS IS CFHTTP_5.CFM=20 : : http://test.fss.gsa.gov:81/sales/cfhttp_6.cfm" = : method=3D"POST">=20 :=20 :=20 :=20 :=20 : =20 : : #cfhttp.filecontent#=20 : : : : THIS IS CFHTTP_6.CFM=20 : : =20 : =20 : CFHTTP Post Test=20 : =20 : : =20 : The following was posted via cfhttp_5.cfm=20 : =20 : =20 : =20 : Form: #form.form_test#=20 : URL: #url.url_test#=20 : Cookie: #cookie.cookie_test#=20 : CGI: #cgi.cgi_test#=20 : : =20 : =20 : =20 : : = : -= : -=20 : Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/=20 : To Unsubscribe visit = : http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3Dlists/cf_ta= : lk or send a message to [EMAIL PROTECTED] with = : 'unsubscribe' in the body. : : : --=_NextPart_000_0607_01C00095.813B5410 : Content-Type: text/html; : charset="Windows-1252" : Content-Transfer-Encoding: quoted-printable : : : CFHTTP Question : : : : : : You have to specify the PORT as an = : attribute for=20 : CFHTTP as opposed to placing it directly in the URL. : : DC : : : - Original Message - : From:=20 : mailto:[EMAIL PROTECTED]" = : [EMAIL PROTECTED]>Randy=20 : Adkins : To: mailto:[EMAIL PROTECTED]"=20 : [EMAIL PROTECTED]>[EMAIL PROTECTED] : Sent: Monday, August 07, 2000 = : 17:29 : Subject: CFHTTP Question : : I am using an example straight out of the Advanced = : book of=20 : CF. I want to do a CFHTTP POST and post data = : to a=20 : form. : However using the exmaple shown below, I get a HTTP = : 404=20 : Error. Both files reside in the same = : directory. I have=20 : checked and re-checked the spelling of the=20 : files. : Any idea whats wrong? : THIS IS CFHTTP_5.CFM : <cfhttp url=3D"http://test.fss.gsa.gov:81/sales/cfhttp_6.cfm"=20 : target=3D_blank>http://test.fss.gsa.gov:81/sales/cfhttp_6.cfm"=20 : method=3D"POST"> <cfhttpparam=20 : name=3D"form_test" type=3D"formfield" value=3D"1"> <cfhttpparam type=3D"URL" name=3D"url_test" = : value=3D"2">=20 : <cfhttpparam type=3D"CGI" = : name=3D"cgi_test"=20 : value=3D"3"> <cfhttpparam = : type=3D"COOKIE"=20 : name=3D"cookie_test" value=3D"4"> </cfhttp> : <cfoutput>#cfhttp.filecontent#</cfoutput>=20 : : THIS IS CFHTTP_6.CFM : <html> <head>=20 : <title>CFHTTP Post Test</title> = : </head> : <body> The following = : was posted=20 : via cfhttp_5.cfm<br> <br> = : <br> <cfoutput> = : Form: #form.form_test#<br> URL:=20 : #url.url_test#<br> Cookie:=20 : #cookie.cookie_test# CGI: = : #cgi.cgi_test# : </cfoutput> </body>=20 : </html> : = : --=20 : Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/"=20 : = : target=3D_blank>http://www.mail-archive.com/cf-talk@houseoffusion.com/=20 : To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3D= : lists/cf_talk"=20 : = : target=3D_blank>http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&am= : p;body=3Dlists/cf_talk=20 : or send a message to [EMAIL PROTECTED] with = : 'unsubscribe' in=20 : the body. : : --=_NextPart_000_0607_01C00095.813B5410-- : : -- : Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ :
Re: CFHTTP Question
This is a multi-part message in MIME format. --=_NextPart_000_0607_01C00095.813B5410 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable CFHTTP QuestionYou have to specify the PORT as an attribute for CFHTTP = as opposed to placing it directly in the URL. DC - Original Message -=20 From: Randy Adkins=20 To: [EMAIL PROTECTED]=20 Sent: Monday, August 07, 2000 17:29 Subject: CFHTTP Question I am using an example straight out of the Advanced book of CF.=20 I want to do a CFHTTP POST and post data to a form.=20 However using the exmaple shown below, I get a HTTP 404 Error.=20 Both files reside in the same directory. I have checked and re-checked = the spelling of the files.=20 Any idea whats wrong?=20 THIS IS CFHTTP_5.CFM=20 http://test.fss.gsa.gov:81/sales/cfhttp_6.cfm" = method=3D"POST">=20 =20 =20 =20 =20 =20 #cfhttp.filecontent#=20 THIS IS CFHTTP_6.CFM=20 =20 =20 CFHTTP Post Test=20 =20 =20 The following was posted via cfhttp_5.cfm=20 =20 =20 =20 Form: #form.form_test#=20 URL: #url.url_test#=20 Cookie: #cookie.cookie_test#=20 CGI: #cgi.cgi_test#=20 =20 =20 =20 = -= -=20 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/=20 To Unsubscribe visit = http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3Dlists/cf_ta= lk or send a message to [EMAIL PROTECTED] with = 'unsubscribe' in the body. --=_NextPart_000_0607_01C00095.813B5410 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable CFHTTP Question You have to specify the PORT as an = attribute for=20 CFHTTP as opposed to placing it directly in the URL. DC - Original Message - From:=20 mailto:[EMAIL PROTECTED]" = [EMAIL PROTECTED]>Randy=20 Adkins To: mailto:[EMAIL PROTECTED]"=20 [EMAIL PROTECTED]>[EMAIL PROTECTED] Sent: Monday, August 07, 2000 = 17:29 Subject: CFHTTP Question I am using an example straight out of the Advanced = book of=20 CF. I want to do a CFHTTP POST and post data = to a=20 form. However using the exmaple shown below, I get a HTTP = 404=20 Error. Both files reside in the same = directory. I have=20 checked and re-checked the spelling of the=20 files. Any idea whats wrong? THIS IS CFHTTP_5.CFMhttp://test.fss.gsa.gov:81/sales/cfhttp_6.cfm"=20 method=3D"POST"> =20 #cfhttp.filecontent# =20 THIS IS CFHTTP_6.CFM =20CFHTTP Post Test = The following = was posted=20 via cfhttp_5.cfm
=
= Form: #form.form_test# =20 = --=20 Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/"=20 = target=3D_blank>http://www.mail-archive.com/cf-talk@houseoffusion.com/=20 To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&body=3D= lists/cf_talk"=20 = target=3D_blank>http://www.houseoffusion.com/index.cfm?sidebar=3Dlists&am= p;body=3Dlists/cf_talk=20 or send a message to [EMAIL PROTECTED] with = 'unsubscribe' in=20 the body. --=_NextPart_000_0607_01C00095.813B5410-- -- Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ To Unsubscribe visit http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
URL:=20 #url.url_test#
Cookie:=20 #cookie.cookie_test# CGI: = #cgi.cgi_test#