https connection issues using cfhttp

2013-01-17 Thread Ian Chapman

Hi Guys,

I've been wrestling with a problem calling a SOAP Web Service using cfhttp. The 
endpoint is an https URL to a server IP, not a host name.

We are running MX7.

Initially when I tried connecting I got the usual error response from an 
untrusted authority source:

ErrorDetail: I/O Exception: peer not authenticated

Usually when this happens we download the certificate (DER format saved as a 
.cer file) from the site using a browser and add it to the Java SDK truststore 
using the keytool -import  command in the jrun/jre/lib folder.

This all went ok and I can see the certificate when I list them using the 
keytool - list... command.

This changed the error response to:

ErrorDetail: I/O Exception: Name in certificate `hub' does not match host name 
`187.141.14.122'

My first issue is very common and usually easy to resolve, but the latter has 
caused a lot of head banging.

What I can tell is that it seems to be self signed certificate and feel this 
might be part of the problem.

Any ideas?

Regards,

Ian.



~|
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:353950
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: https connection issues using cfhttp

2013-01-17 Thread Russ Michaels

Is the ssl cert actually for the ip address, the error says it is for hub

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers
www.cfsearch.com - CF search engine
On Jan 17, 2013 3:12 PM, Ian Chapman ian.chap...@melodimedia.co.uk
wrote:


 Hi Guys,

 I've been wrestling with a problem calling a SOAP Web Service using
 cfhttp. The endpoint is an https URL to a server IP, not a host name.

 We are running MX7.

 Initially when I tried connecting I got the usual error response from an
 untrusted authority source:

 ErrorDetail: I/O Exception: peer not authenticated

 Usually when this happens we download the certificate (DER format saved as
 a .cer file) from the site using a browser and add it to the Java SDK
 truststore using the keytool -import  command in the jrun/jre/lib
 folder.

 This all went ok and I can see the certificate when I list them using the
 keytool - list... command.

 This changed the error response to:

 ErrorDetail: I/O Exception: Name in certificate `hub' does not match host
 name `187.141.14.122'

 My first issue is very common and usually easy to resolve, but the latter
 has caused a lot of head banging.

 What I can tell is that it seems to be self signed certificate and feel
 this might be part of the problem.

 Any ideas?

 Regards,

 Ian.



 

~|
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:353951
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


re: https connection issues using cfhttp

2013-01-17 Thread Jeff Garza

You are going to have to edit your hosts file and create a pointer for 
hub that directs it to 187.141.14.122.  Then when you call the 
webservice, you'll use https://hub/...; to access it.  I've been through 
this before as well and this should do it after you've imported the 
certificate from the site.

--
Jeff


 Original Message 
 From: Ian Chapman ian.chap...@melodimedia.co.uk
 Sent: Thursday, January 17, 2013 8:13 AM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: https connection issues using cfhttp
 
 Hi Guys,
 
 I've been wrestling with a problem calling a SOAP Web Service using 
cfhttp. The endpoint is an https URL to a server IP, not a host name.
 
 We are running MX7.
 
 Initially when I tried connecting I got the usual error response from an 
untrusted authority source:
 
 ErrorDetail: I/O Exception: peer not authenticated
 
 Usually when this happens we download the certificate (DER format saved 
as a .cer file) from the site using a browser and add it to the Java SDK 
truststore using the keytool -import  command in the jrun/jre/lib 
folder.
 
 This all went ok and I can see the certificate when I list them using the 
keytool - list... command.
 
 This changed the error response to:
 
 ErrorDetail: I/O Exception: Name in certificate `hub' does not match 
host name `187.141.14.122'
 
 My first issue is very common and usually easy to resolve, but the latter 
has caused a lot of head banging.
 
 What I can tell is that it seems to be self signed certificate and feel 
this might be part of the problem.
 
 Any ideas?
 
 Regards,
 
 Ian.
 
 
 
 

~|
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:353952
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: https connection issues using cfhttp

2013-01-17 Thread Ian Chapman

Hi Russ,

When saving the file from Firefox it gets saved by default as HUB.cer. And
that's what I imported into the keystore. I did as a test tried saving as
187.141.14.122.cer but the filename is obviously arbitrary so didn't help.

When I look at the certificate in Windows it says issued to HUB and issued
by HUB. But I'm not sure how you'd create a certificate issued from
187.141.14.122.

This is the end point so you can see the certificate in question if it
helps.

https://187.141.14.122:443/asg/services/SubscribeProductService


Regards,

Ian.


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: 17 January 2013 15:30
To: cf-talk
Subject: Re: https connection issues using cfhttp


Is the ssl cert actually for the ip address, the error says it is for hub

Regards
Russ Michaels
www.michaels.me.uk
www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com -
CF search engine On Jan 17, 2013 3:12 PM, Ian Chapman
ian.chap...@melodimedia.co.uk
wrote:


 Hi Guys,

 I've been wrestling with a problem calling a SOAP Web Service using 
 cfhttp. The endpoint is an https URL to a server IP, not a host name.

 We are running MX7.

 Initially when I tried connecting I got the usual error response from 
 an untrusted authority source:

 ErrorDetail: I/O Exception: peer not authenticated

 Usually when this happens we download the certificate (DER format 
 saved as a .cer file) from the site using a browser and add it to the 
 Java SDK truststore using the keytool -import  command in the 
 jrun/jre/lib folder.

 This all went ok and I can see the certificate when I list them using 
 the keytool - list... command.

 This changed the error response to:

 ErrorDetail: I/O Exception: Name in certificate `hub' does not match 
 host name `187.141.14.122'

 My first issue is very common and usually easy to resolve, but the 
 latter has caused a lot of head banging.

 What I can tell is that it seems to be self signed certificate and 
 feel this might be part of the problem.

 Any ideas?

 Regards,

 Ian.



 



~|
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:353953
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: https connection issues using cfhttp

2013-01-17 Thread John M Bliss

+1 what Jeff said. Dealt with this same issue here:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:64157


On Thu, Jan 17, 2013 at 9:37 AM, Jeff Garza j...@garzasixpack.com wrote:


 You are going to have to edit your hosts file and create a pointer for
 hub that directs it to 187.141.14.122.  Then when you call the
 webservice, you'll use https://hub/...; to access it.  I've been through
 this before as well and this should do it after you've imported the
 certificate from the site.

 --
 Jeff


  Original Message 
  From: Ian Chapman ian.chap...@melodimedia.co.uk
  Sent: Thursday, January 17, 2013 8:13 AM
  To: cf-talk cf-talk@houseoffusion.com
  Subject: https connection issues using cfhttp
 
  Hi Guys,
 
  I've been wrestling with a problem calling a SOAP Web Service using
 cfhttp. The endpoint is an https URL to a server IP, not a host name.
 
  We are running MX7.
 
  Initially when I tried connecting I got the usual error response from an
 untrusted authority source:
 
  ErrorDetail: I/O Exception: peer not authenticated
 
  Usually when this happens we download the certificate (DER format saved
 as a .cer file) from the site using a browser and add it to the Java SDK
 truststore using the keytool -import  command in the jrun/jre/lib
 folder.
 
  This all went ok and I can see the certificate when I list them using the
 keytool - list... command.
 
  This changed the error response to:
 
  ErrorDetail: I/O Exception: Name in certificate `hub' does not match
 host name `187.141.14.122'
 
  My first issue is very common and usually easy to resolve, but the latter
 has caused a lot of head banging.
 
  What I can tell is that it seems to be self signed certificate and feel
 this might be part of the problem.
 
  Any ideas?
 
  Regards,
 
  Ian.
 
 
 
 

 

~|
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:353954
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: https connection issues using cfhttp

2013-01-17 Thread Russ Michaels

that is your problem then, the cert does not match the hostname.

so here are the options

1. create a hosts entry as others have said
2. get the person running the web service to assign a domain or sub-domain
to it and create a cert for that domain.



On Thu, Jan 17, 2013 at 3:46 PM, Ian Chapman
ian.chap...@melodimedia.co.ukwrote:


 Hi Russ,

 When saving the file from Firefox it gets saved by default as HUB.cer.
 And
 that's what I imported into the keystore. I did as a test tried saving as
 187.141.14.122.cer but the filename is obviously arbitrary so didn't
 help.

 When I look at the certificate in Windows it says issued to HUB and
 issued
 by HUB. But I'm not sure how you'd create a certificate issued from
 187.141.14.122.

 This is the end point so you can see the certificate in question if it
 helps.

 https://187.141.14.122:443/asg/services/SubscribeProductService


 Regards,

 Ian.


 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: 17 January 2013 15:30
 To: cf-talk
 Subject: Re: https connection issues using cfhttp


 Is the ssl cert actually for the ip address, the error says it is for hub

 Regards
 Russ Michaels
 www.michaels.me.uk
 www.cfmldeveloper.com - Free CFML hosting for developers www.cfsearch.com-
 CF search engine On Jan 17, 2013 3:12 PM, Ian Chapman
 ian.chap...@melodimedia.co.uk
 wrote:

 
  Hi Guys,
 
  I've been wrestling with a problem calling a SOAP Web Service using
  cfhttp. The endpoint is an https URL to a server IP, not a host name.
 
  We are running MX7.
 
  Initially when I tried connecting I got the usual error response from
  an untrusted authority source:
 
  ErrorDetail: I/O Exception: peer not authenticated
 
  Usually when this happens we download the certificate (DER format
  saved as a .cer file) from the site using a browser and add it to the
  Java SDK truststore using the keytool -import  command in the
  jrun/jre/lib folder.
 
  This all went ok and I can see the certificate when I list them using
  the keytool - list... command.
 
  This changed the error response to:
 
  ErrorDetail: I/O Exception: Name in certificate `hub' does not match
  host name `187.141.14.122'
 
  My first issue is very common and usually easy to resolve, but the
  latter has caused a lot of head banging.
 
  What I can tell is that it seems to be self signed certificate and
  feel this might be part of the problem.
 
  Any ideas?
 
  Regards,
 
  Ian.
 
 
 
 



 

~|
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:353955
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: https connection issues using cfhttp

2013-01-17 Thread Ian Chapman

Hi Jeff,

I did see something like that suggested somewhere else but think I had
misunderstood what I should point to the IP.  Now you've said it like that
it makes complete sense.

That works a treat, connecting ok.  Why didn't I post here earlier. :)

Really appreciate your help.

Regards,

Ian.


-Original Message-
From: Jeff Garza [mailto:j...@garzasixpack.com] 
Sent: 17 January 2013 15:37
To: cf-talk
Subject: re: https connection issues using cfhttp


You are going to have to edit your hosts file and create a pointer for hub
that directs it to 187.141.14.122.  Then when you call the webservice,
you'll use https://hub/...; to access it.  I've been through this before as
well and this should do it after you've imported the certificate from the
site.

--
Jeff


 Original Message 
 From: Ian Chapman ian.chap...@melodimedia.co.uk
 Sent: Thursday, January 17, 2013 8:13 AM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: https connection issues using cfhttp
 
 Hi Guys,
 
 I've been wrestling with a problem calling a SOAP Web Service using
cfhttp. The endpoint is an https URL to a server IP, not a host name.
 
 We are running MX7.
 
 Initially when I tried connecting I got the usual error response from 
 an
untrusted authority source:
 
 ErrorDetail: I/O Exception: peer not authenticated
 
 Usually when this happens we download the certificate (DER format 
 saved
as a .cer file) from the site using a browser and add it to the Java SDK
truststore using the keytool -import  command in the jrun/jre/lib
folder.
 
 This all went ok and I can see the certificate when I list them using 
 the
keytool - list... command.
 
 This changed the error response to:
 
 ErrorDetail: I/O Exception: Name in certificate `hub' does not match
host name `187.141.14.122'
 
 My first issue is very common and usually easy to resolve, but the 
 latter
has caused a lot of head banging.
 
 What I can tell is that it seems to be self signed certificate and 
 feel
this might be part of the problem.
 
 Any ideas?
 
 Regards,
 
 Ian.
 
 
 
 



~|
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:353956
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: https connection issues using cfhttp

2013-01-17 Thread Ian Chapman

Ok thanks John.  I did search before posting but didn't see that.


-Original Message-
From: John M Bliss [mailto:bliss.j...@gmail.com] 
Sent: 17 January 2013 15:48
To: cf-talk
Subject: Re: https connection issues using cfhttp


+1 what Jeff said. Dealt with this same issue here:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:64157


On Thu, Jan 17, 2013 at 9:37 AM, Jeff Garza j...@garzasixpack.com wrote:


 You are going to have to edit your hosts file and create a pointer for 
 hub that directs it to 187.141.14.122.  Then when you call the 
 webservice, you'll use https://hub/...; to access it.  I've been 
 through this before as well and this should do it after you've 
 imported the certificate from the site.

 --
 Jeff


  Original Message 
  From: Ian Chapman ian.chap...@melodimedia.co.uk
  Sent: Thursday, January 17, 2013 8:13 AM
  To: cf-talk cf-talk@houseoffusion.com
  Subject: https connection issues using cfhttp
 
  Hi Guys,
 
  I've been wrestling with a problem calling a SOAP Web Service using
 cfhttp. The endpoint is an https URL to a server IP, not a host name.
 
  We are running MX7.
 
  Initially when I tried connecting I got the usual error response 
  from an
 untrusted authority source:
 
  ErrorDetail: I/O Exception: peer not authenticated
 
  Usually when this happens we download the certificate (DER format 
  saved
 as a .cer file) from the site using a browser and add it to the Java 
 SDK truststore using the keytool -import  command in the 
 jrun/jre/lib folder.
 
  This all went ok and I can see the certificate when I list them 
  using the
 keytool - list... command.
 
  This changed the error response to:
 
  ErrorDetail: I/O Exception: Name in certificate `hub' does not 
  match
 host name `187.141.14.122'
 
  My first issue is very common and usually easy to resolve, but the 
  latter
 has caused a lot of head banging.
 
  What I can tell is that it seems to be self signed certificate and 
  feel
 this might be part of the problem.
 
  Any ideas?
 
  Regards,
 
  Ian.
 
 
 
 

 



~|
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:353957
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: WEBDAV Put using CFHTTP

2011-11-05 Thread Jorge Mazariegos

Hi Charles,

I just ran into the same problem as you described but in my case the webdav 
server is tied to the port 8086.
Meaning, I am getting the Status code issue.

Did you get to solve the issue?
I am using CFMX 9.0

Thank you,



 Thanks, I was using the CFHTTPPARAM to put a file which is on the 
 local file system to the WEBDAV host. This right now is not a web form 
 just a simple cfm page.
 
 Thanks,
 - Charles
 
   I seem to be getting closer. I'm now getting a 409 Conflict. I 
  really dont know much about the WEBDAV protocol. Does anyone know 
 what 
  a 409 Conflict is.
  
  It means that there's some reason why WebDAV can't accept the file.
  Maybe it's older than the one already there. Maybe you're providing
  incorrect parameters. Is there a reason why the name attribute of 
  your
  CFHTTPPARAM contains the value base.xml? Typically, this contains
  the name of the formfield that contains the file the server's
  expecting to receive.
  
  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! 

~|
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:348474
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-07 Thread Al Musella, DPM

If you are checking for the site to be up, you may as well check that 
everything is working ok also.. What I do is use cfhttp to get my 
home page - but I add a special url parameter which tells my page to 
add an entire record from my user's database at the bottom of the 
page. (I use my own record so I know if I made any recent changes).
I then compare that page to a copy I store in the database.  (I mark 
changeable sections like my banner ad  so I do not count that part of 
the page).. if it is different, I save the page into the database and 
send a text alert to my cellphone which tells me a change has been 
made.. along with a link to a page on my website which shows me the 
code view of the old version as well as the new version so I can see 
what has changed.

This allows me to:
1. Know if the page is working
2. Know if the page has changed (as in the recent ftp hacks)
3. Know if the database was hacked
4. Know if the database server is working




At 11:36 AM 4/6/2010, you wrote:

Hello,

Is there a way to use cfhttp to see if a site is down? Does it 
involve using #HTMLCodeFormat(cfhttp.FileContent)# to see if a 403 
error is downloaded?

Thanks.

RO
HWW



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332687
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-07 Thread Brian Thornton

or just sign up for the many free alerting services.

On Tue, Apr 6, 2010 at 12:24 PM, Andy Matthews li...@commadelimited.com wrote:

 Additionally you can make the request a little lighter by just making a HEAD
 request instead of a get or post.

 cfhttp url=http://www.andymatthews.net; method=head/cfhttp

 It doesn't return the entire body of the site in the filecontent key.


 andy

 -Original Message-
 From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
 Sent: Tuesday, April 06, 2010 10:47 AM
 To: cf-talk
 Subject: Re: using cfhttp


 d'oH!  yeah, cfhttp.statusCode.  not cfhttp.fileStatus.  :)

 On Tue, Apr 6, 2010 at 8:41 AM, Kevin Pepperman chorno...@gmail.com wrote:


 Using cfhttp will return a cfhttp.statusCode, which if is 200 OK you
 know the URL has resolved correct.


 --
 /Kevin Pepperman

 They who can give up essential liberty to obtain a little temporary
 safety, deserve neither liberty nor safety. - Benjamin Franklin






 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332690
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-07 Thread Matthew Smith

Can you recommend any?

On Wed, Apr 7, 2010 at 7:00 AM, Brian Thornton vegasthorn...@gmail.comwrote:


 or just sign up for the many free alerting services.

 On Tue, Apr 6, 2010 at 12:24 PM, Andy Matthews li...@commadelimited.com
 wrote:
 
  Additionally you can make the request a little lighter by just making a
 HEAD
  request instead of a get or post.
 
  cfhttp url=http://www.andymatthews.net; method=head/cfhttp
 
  It doesn't return the entire body of the site in the filecontent key.
 
 
  andy
 
  -Original Message-
  From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
  Sent: Tuesday, April 06, 2010 10:47 AM
  To: cf-talk
  Subject: Re: using cfhttp
 
 
  d'oH!  yeah, cfhttp.statusCode.  not cfhttp.fileStatus.  :)
 
  On Tue, Apr 6, 2010 at 8:41 AM, Kevin Pepperman chorno...@gmail.com
 wrote:
 
 
  Using cfhttp will return a cfhttp.statusCode, which if is 200 OK you
  know the URL has resolved correct.
 
 
  --
  /Kevin Pepperman
 
  They who can give up essential liberty to obtain a little temporary
  safety, deserve neither liberty nor safety. - Benjamin Franklin
 
 
 
 
 
 
 

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332693
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: using cfhttp

2010-04-07 Thread Andy Matthews

http://aremysitesup.com/

Run by Chris Coyier of CSS-tricks.com


andy 

-Original Message-
From: Matthew Smith [mailto:chedders...@gmail.com] 
Sent: Wednesday, April 07, 2010 8:25 AM
To: cf-talk
Subject: Re: using cfhttp


Can you recommend any?

On Wed, Apr 7, 2010 at 7:00 AM, Brian Thornton
vegasthorn...@gmail.comwrote:


 or just sign up for the many free alerting services.

 On Tue, Apr 6, 2010 at 12:24 PM, Andy Matthews 
 li...@commadelimited.com
 wrote:
 
  Additionally you can make the request a little lighter by just 
  making a
 HEAD
  request instead of a get or post.
 
  cfhttp url=http://www.andymatthews.net; method=head/cfhttp
 
  It doesn't return the entire body of the site in the filecontent key.
 
 
  andy
 
  -Original Message-
  From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
  Sent: Tuesday, April 06, 2010 10:47 AM
  To: cf-talk
  Subject: Re: using cfhttp
 
 
  d'oH!  yeah, cfhttp.statusCode.  not cfhttp.fileStatus.  :)
 
  On Tue, Apr 6, 2010 at 8:41 AM, Kevin Pepperman 
  chorno...@gmail.com
 wrote:
 
 
  Using cfhttp will return a cfhttp.statusCode, which if is 200 OK 
  you know the URL has resolved correct.
 
 
  --
  /Kevin Pepperman
 
  They who can give up essential liberty to obtain a little 
  temporary safety, deserve neither liberty nor safety. - Benjamin 
  Franklin
 
 
 
 
 
 
 

 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332706
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-07 Thread Al Musella, DPM

If you are checking for the site to be up, you may as well check that 
everything is working ok also.. What I do is use cfhttp to get my 
home page - but I add a special url parameter which tells my page to 
add an entire record from my user's database at the bottom of the 
page. (I use my own record so I know if I made any recent changes).
I then compare that page to a copy I store in the database.  (I mark 
changeable sections like my banner ad  so I do not count that part of 
the page).. if it is different, I save the page into the database and 
send a text alert to my cellphone which tells me a change has been 
made.. along with a link to a page on my website which shows me the 
code view of the old version as well as the new version so I can see 
what has changed.

This allows me to:
1. Know if the page is working
2. Know if the page has changed (as in the recent ftp hacks)
3. Know if the database was hacked
4. Know if the database server is working




At 11:36 AM 4/6/2010, you wrote:

Hello,

Is there a way to use cfhttp to see if a site is down? Does it 
involve using #HTMLCodeFormat(cfhttp.FileContent)# to see if a 403 
error is downloaded?

Thanks.

RO
HWW



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332748
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: using cfhttp

2010-04-07 Thread UXB Internet

We use a product called servers alive to monitor websites, servers, email,
disk space, folders (ex cfmail rejected folder) and just about everything
you can imagine.  It outputs to a web page, does email and/or sms messaging
notifications and is a jack of all trades for monitoring things.  I can
highly recommend it.

http://www.woodstone.nu/salive/




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332750
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


using cfhttp

2010-04-06 Thread Orlini, Robert

Hello,

Is there a way to use cfhttp to see if a site is down? Does it involve using 
#HTMLCodeFormat(cfhttp.FileContent)# to see if a 403 error is downloaded?

Thanks.

RO
HWW




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332638
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-06 Thread Charlie Griefer

On Tue, Apr 6, 2010 at 8:36 AM, Orlini, Robert rorl...@hwwilson.com wrote:


 Hello,

 Is there a way to use cfhttp to see if a site is down? Does it involve
 using #HTMLCodeFormat(cfhttp.FileContent)# to see if a 403 error is
 downloaded?


check the cfhttp.filestatus to see if it contains the string 200

-- 
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332639
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-06 Thread Kevin Pepperman

Using cfhttp will return a cfhttp.statusCode, which if is 200 OK you know
the URL has resolved correct.


-- 
/Kevin Pepperman

They who can give up essential liberty to obtain a little temporary safety,
deserve neither liberty nor safety. - Benjamin Franklin


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332640
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-06 Thread Charlie Griefer

d'oH!  yeah, cfhttp.statusCode.  not cfhttp.fileStatus.  :)

On Tue, Apr 6, 2010 at 8:41 AM, Kevin Pepperman chorno...@gmail.com wrote:


 Using cfhttp will return a cfhttp.statusCode, which if is 200 OK you know
 the URL has resolved correct.


 --
 /Kevin Pepperman

 They who can give up essential liberty to obtain a little temporary
 safety,
 deserve neither liberty nor safety. - Benjamin Franklin


 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332641
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: using cfhttp

2010-04-06 Thread Andy Matthews

Additionally you can make the request a little lighter by just making a HEAD
request instead of a get or post.

cfhttp url=http://www.andymatthews.net; method=head/cfhttp

It doesn't return the entire body of the site in the filecontent key.


andy

-Original Message-
From: Charlie Griefer [mailto:charlie.grie...@gmail.com] 
Sent: Tuesday, April 06, 2010 10:47 AM
To: cf-talk
Subject: Re: using cfhttp


d'oH!  yeah, cfhttp.statusCode.  not cfhttp.fileStatus.  :)

On Tue, Apr 6, 2010 at 8:41 AM, Kevin Pepperman chorno...@gmail.com wrote:


 Using cfhttp will return a cfhttp.statusCode, which if is 200 OK you 
 know the URL has resolved correct.


 --
 /Kevin Pepperman

 They who can give up essential liberty to obtain a little temporary 
 safety, deserve neither liberty nor safety. - Benjamin Franklin


 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332644
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-06 Thread Charlie Griefer

On Tue, Apr 6, 2010 at 9:24 AM, Andy Matthews li...@commadelimited.comwrote:


 Additionally you can make the request a little lighter by just making a
 HEAD
 request instead of a get or post.

 cfhttp url=http://www.andymatthews.net; method=head/cfhttp

 It doesn't return the entire body of the site in the filecontent key.


Nice!  I did not know that.

-- 
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332645
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: using cfhttp

2010-04-06 Thread Andy Matthews

Yep. I use that to ping a site with an AJAX call too. 

-Original Message-
From: Charlie Griefer [mailto:charlie.grie...@gmail.com] 
Sent: Tuesday, April 06, 2010 11:35 AM
To: cf-talk
Subject: Re: using cfhttp


On Tue, Apr 6, 2010 at 9:24 AM, Andy Matthews
li...@commadelimited.comwrote:


 Additionally you can make the request a little lighter by just making 
 a HEAD request instead of a get or post.

 cfhttp url=http://www.andymatthews.net; method=head/cfhttp

 It doesn't return the entire body of the site in the filecontent key.


Nice!  I did not know that.

--
Charlie Griefer
http://charlie.griefer.com/

I have failed as much as I have succeeded. But I love my life. I love my
wife. And I wish you my kind of success.




~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332650
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: using cfhttp

2010-04-06 Thread Dave Watts

 Additionally you can make the request a little lighter by just making a HEAD
 request instead of a get or post.

 cfhttp url=http://www.andymatthews.net; method=head/cfhttp

 It doesn't return the entire body of the site in the filecontent key.

Well, this really depends on how the site was written, I think. If
you're writing something with CF, and someone makes an HTTP HEAD
request, it's up to you to abort processing to prevent the execution
of the page after generation of HTTP response headers.

It's possible that the web server truncates the request anyway, and
that behavior may be dependent on the specific web server for all I
know, but you're typically more concerned (as the publisher) with
reducing the amount of time needed to respond to the request.

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.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332667
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Using CFHTTP to access a website

2010-02-19 Thread Ben Conner

Hi,

I have a list of names from a database I want to bounce off of a search 
function on a website.  I threw together a test of one name/initial 
combination in a CFHTTP call and it threw an error. 

The page is located at 
http://www.azcorrections.gov/inmate_datasearch/Index_Minh.aspx.  If you 
do a View Source, is there anything in the inmate search area that might 
keep a CFHTTP from accessing it?

Thanks!

--Ben

-- 
Ben Connerb...@webworldinc.com
Web World, Inc.   888-206-6486
PO Box 1122   480-704-2000
Queen Creek, AZ 85242 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330954
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Dave Watts

 I have a list of names from a database I want to bounce off of a search
 function on a website.  I threw together a test of one name/initial
 combination in a CFHTTP call and it threw an error.

 The page is located at
 http://www.azcorrections.gov/inmate_datasearch/Index_Minh.aspx.  If you
 do a View Source, is there anything in the inmate search area that might
 keep a CFHTTP from accessing it?

CFHTTP can access anything a browser on the same machine can access,
but it's up to you to send any data that the remote server is looking
for. Now, in the case of this specific page, it's an ASP.NET page that
uses VIEWSTATE, so you'll probably have to fetch the page twice, and
send cookies received from the first request to the second.

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

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330955
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Ben Conner

Thanks, Dave!  How does CFHTTP manage cookies?

--Ben

Dave Watts wrote:
 I have a list of names from a database I want to bounce off of a search
 function on a website.  I threw together a test of one name/initial
 combination in a CFHTTP call and it threw an error.

 The page is located at
 http://www.azcorrections.gov/inmate_datasearch/Index_Minh.aspx.  If you
 do a View Source, is there anything in the inmate search area that might
 keep a CFHTTP from accessing it?
 

 CFHTTP can access anything a browser on the same machine can access,
 but it's up to you to send any data that the remote server is looking
 for. Now, in the case of this specific page, it's an ASP.NET page that
 uses VIEWSTATE, so you'll probably have to fetch the page twice, and
 send cookies received from the first request to the second.

 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

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330956
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Ben Conner

Ah.  Never mind the cookie response.  Found a previous post explaining 
it.  My apologies.

--Ben

Ben Conner wrote:
 Hi,

 I have a list of names from a database I want to bounce off of a search 
 function on a website.  I threw together a test of one name/initial 
 combination in a CFHTTP call and it threw an error. 

 The page is located at 
 http://www.azcorrections.gov/inmate_datasearch/Index_Minh.aspx.  If you 
 do a View Source, is there anything in the inmate search area that might 
 keep a CFHTTP from accessing it?

 Thanks!

 --Ben

   

-- 
Ben Connerb...@webworldinc.com
Web World, Inc.   888-206-6486
PO Box 1122   480-704-2000
Queen Creek, AZ 85242 



~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330957
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Dave Watts

 Thanks, Dave!  How does CFHTTP manage cookies?

It doesn't. You have to do that yourself. You can read cookies set in
an HTTP request using CFHTTP.responseHeader, then write them for
subsequent responses using CFHTTPPARAM.

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

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330958
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Ben Conner

Hi Dave,

I see this site doesn't appear to use cookies (at least on this page) as 
reported by the Web Developer Firefox add-on.  I put together a test 
page but it's throwing an error from their site.  I faked a name for the 
lastname/first initial combinations.  I looked through the url  string 
but don't see anything obvious.  ??

--Ben

cfset 
target=http://www.azcorrections.gov/inmate_datasearch/index_minh.aspx;
cfhttp url=#target#
method=GET
port=80
/cfhttp

cfset initlength=len(#cfhttp.filecontent#)
cfset start=Find(__VIEWSTATE,#cfhttp.filecontent#)
cfset sstring=MID(#cfhttp.filecontent#,start,initlength-start)
cfset vs=GetToken(sstring,5,)
cfset event=GetToken(sstring,13,)
cfset stat=Active
cfset statvar=CTL00$CENTRALCONTENT$ACTIVESTATUS
cfset genvar=CTL00$CENTRALCONTENT$GENDER
cfset gen=Male
cfset eventvar=__EVENTVALIDATION
cfset inmatevar=CTL00$CENTRALCONTENT$INMATENUMBER
cfset lnamevar=CTL00$CENTRALCONTENT$LASTNAME
cfset finitvar=CTL00$CENTRALCONTENT$FIRSTINITIAL
cfset vsvar=__VIEWSTATE
cfset subvar=INMATENAMESUBMIT

cfset 
urlstring=#target#?#vsvar#=#vs##eventvar#=#event##statvar#=#stat##inmatevar#=#lnamevar#=Smith#finitvar#=C#genvar#=#gen##eventvar#=#event##subvar#=GO#genvar#=#gen##statvar#=#stat#

cfoutput#urlstring#/cfoutput


cfhttp url=#urlstring#
method=GET
port=80/cfhttp
cfoutput
#cfhttp.filecontent#
/cfoutput


Dave Watts wrote:
 Thanks, Dave!  How does CFHTTP manage cookies?
 

 It doesn't. You have to do that yourself. You can read cookies set in
 an HTTP request using CFHTTP.responseHeader, then write them for
 subsequent responses using CFHTTPPARAM.

 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

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330962
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Dorioo

I've had good results using the project below. Maybe it can help you.

http://www.bennadel.com/projects/cfhttp-session.htm

- Gabriel

On Fri, Feb 19, 2010 at 5:49 PM, Ben Conner b...@webworldinc.com wrote:

 Hi Dave,

 I see this site doesn't appear to use cookies (at least on this page) as
 reported by the Web Developer Firefox add-on.  I put together a test
 page but it's throwing an error from their site.  I faked a name for the
 lastname/first initial combinations.  I looked through the url  string
 but don't see anything obvious.  ??

 --Ben

 cfset
 target=http://www.azcorrections.gov/inmate_datasearch/index_minh.aspx;
 cfhttp url=#target#
        method=GET
        port=80
 /cfhttp

 cfset initlength=len(#cfhttp.filecontent#)
 cfset start=Find(__VIEWSTATE,#cfhttp.filecontent#)
 cfset sstring=MID(#cfhttp.filecontent#,start,initlength-start)
 cfset vs=GetToken(sstring,5,)
 cfset event=GetToken(sstring,13,)
 cfset stat=Active
 cfset statvar=CTL00$CENTRALCONTENT$ACTIVESTATUS
 cfset genvar=CTL00$CENTRALCONTENT$GENDER
 cfset gen=Male
 cfset eventvar=__EVENTVALIDATION
 cfset inmatevar=CTL00$CENTRALCONTENT$INMATENUMBER
 cfset lnamevar=CTL00$CENTRALCONTENT$LASTNAME
 cfset finitvar=CTL00$CENTRALCONTENT$FIRSTINITIAL
 cfset vsvar=__VIEWSTATE
 cfset subvar=INMATENAMESUBMIT

 cfset
 urlstring=#target#?#vsvar#=#vs##eventvar#=#event##statvar#=#stat##inmatevar#=#lnamevar#=Smith#finitvar#=C#genvar#=#gen##eventvar#=#event##subvar#=GO#genvar#=#gen##statvar#=#stat#

 cfoutput#urlstring#/cfoutput


 cfhttp url=#urlstring#
        method=GET
        port=80/cfhttp
 cfoutput
 #cfhttp.filecontent#
 /cfoutput


 Dave Watts wrote:
 Thanks, Dave!  How does CFHTTP manage cookies?


 It doesn't. You have to do that yourself. You can read cookies set in
 an HTTP request using CFHTTP.responseHeader, then write them for
 subsequent responses using CFHTTPPARAM.

 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



 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330963
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Ben Conner

Hi Dorioo,

Interesting code.  The big difference I see is that in this instance I 
don't need to log on.  Will take a look at it and see if I can use it.

Thanks!

--Ben

Dorioo wrote:
 I've had good results using the project below. Maybe it can help you.

 http://www.bennadel.com/projects/cfhttp-session.htm

 - Gabriel

 On Fri, Feb 19, 2010 at 5:49 PM, Ben Conner b...@webworldinc.com wrote:
   
 Hi Dave,

 I see this site doesn't appear to use cookies (at least on this page) as
 reported by the Web Developer Firefox add-on.  I put together a test
 page but it's throwing an error from their site.  I faked a name for the
 lastname/first initial combinations.  I looked through the url  string
 but don't see anything obvious.  ??

 --Ben

 cfset
 target=http://www.azcorrections.gov/inmate_datasearch/index_minh.aspx;
 cfhttp url=#target#
method=GET
port=80
 /cfhttp

 cfset initlength=len(#cfhttp.filecontent#)
 cfset start=Find(__VIEWSTATE,#cfhttp.filecontent#)
 cfset sstring=MID(#cfhttp.filecontent#,start,initlength-start)
 cfset vs=GetToken(sstring,5,)
 cfset event=GetToken(sstring,13,)
 cfset stat=Active
 cfset statvar=CTL00$CENTRALCONTENT$ACTIVESTATUS
 cfset genvar=CTL00$CENTRALCONTENT$GENDER
 cfset gen=Male
 cfset eventvar=__EVENTVALIDATION
 cfset inmatevar=CTL00$CENTRALCONTENT$INMATENUMBER
 cfset lnamevar=CTL00$CENTRALCONTENT$LASTNAME
 cfset finitvar=CTL00$CENTRALCONTENT$FIRSTINITIAL
 cfset vsvar=__VIEWSTATE
 cfset subvar=INMATENAMESUBMIT

 cfset
 urlstring=#target#?#vsvar#=#vs##eventvar#=#event##statvar#=#stat##inmatevar#=#lnamevar#=Smith#finitvar#=C#genvar#=#gen##eventvar#=#event##subvar#=GO#genvar#=#gen##statvar#=#stat#

 cfoutput#urlstring#/cfoutput


 cfhttp url=#urlstring#
method=GET
port=80/cfhttp
 cfoutput
 #cfhttp.filecontent#
 /cfoutput


 Dave Watts wrote:
 
 Thanks, Dave!  How does CFHTTP manage cookies?

 
 It doesn't. You have to do that yourself. You can read cookies set in
 an HTTP request using CFHTTP.responseHeader, then write them for
 subsequent responses using CFHTTPPARAM.

 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


   
 

 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330964
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Claude Schnéegans

 CFHTTP can access anything a browser on the same machine can access,

... except if the site checks if the IP address requested the form 
before it receives the action request.
In this case, one should at least request the form page first.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330966
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Dave Watts

 I see this site doesn't appear to use cookies (at least on this page) as
 reported by the Web Developer Firefox add-on.  I put together a test
 page but it's throwing an error from their site.  I faked a name for the
 lastname/first initial combinations.  I looked through the url  string
 but don't see anything obvious.  ??

I don't have time to test this myself, unfortunately, so I'll just
give you the advice that I'd use to solve the problem myself.

Visit the site in a browser, and use a sniffer to see exactly what
gets sent and received. I use Wireshark for this sort of thing, but
there are many (easier-to-use) alternatives.

Then, within your CF code, emulate everything the browser is doing.
Use your sniffer again to see exactly what's being sent, then change
your code accordingly.

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 on

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330967
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to access a website

2010-02-19 Thread Dave Watts

  CFHTTP can access anything a browser on the same machine can access,

 ... except if the site checks if the IP address requested the form
 before it receives the action request.
 In this case, one should at least request the form page first.

As mentioned previously, the form will have to be fetched anyway
because it's an ASP.NET application that uses VIEWSTATE. So, the
action page is going to need to read whatever value was set in the
script that generated the form.

But in any case, this would work the same way whether you're using a
browser or not, so again, CFHTTP can access anything a browser on the
same machine can access.

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

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:330968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Issues using CFHTTP

2009-10-22 Thread Asaf Peleg

Thanks Barney,

This definitely sent me down the right path. Appreciate the input.

Thanks,
Asaf 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327520
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Issues using CFHTTP

2009-10-21 Thread Asaf Peleg

Hi everyone,

My websites has different types of profiles that our end users log into that 
follows a simply hierarchy that goes as follows.

Administrator - Super Users - End Users

Where all Super Users are managed by the Administrator and each Super User 
manages a subset of all End Users.  Each profile is locked by a username and 
password from a login page. For debugging, auditing or support purposes 
sometimes it becomes very useful for the Administrator to log into the profile 
of one of his Super Users or for a Super User to log into one of his End Users 
profiles since each profile contains different landing pages and content.  I'm 
trying to achieve this functionality without the need to look up that persons 
password (for obvious security reasons) so I've been toying around with 
different methods.

My first thought was to use CFHTTP but I've had no luck with it.  I thought I 
could simply do 

cfhttp url=mylogincheck method=post redirect=true 
cfhttpparam type=formfield name=username value=#username#
cfhttpparam type=formfield name=password value=#password#
/cfhttp

and it would redirect me much like a cflocation does except with form data 
being posted, but I could get that desired behavior.  I've gave up on this and 
did the following.

cfoutput
form action=mylogincheck method=post name=login
input type=hidden name=username value=#username#
input type=hidden name=password value=#password#
script language=JavaScript
document.login.submit();
/script
/form
/cfoutput

Which works but I'm concerned this is a not the correct way and could possibly 
pose security issues since I'm technically creating an HTML page with someones 
password even though the page redirects instantly. Would anyone care to tell me 
what I'm doing wrong with CFHTTP or if alternatively, my concerns are 
unfounded and my solution is in fact secure.

Thanks,
Asaf 

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Issues using CFHTTP

2009-10-21 Thread Barney Boisvert

You're approaching this in the wrong way, I think.  Ideally what you'd
do is take your existing security mechanism (whatever it is) and add
the ability to spoof another user.  So any Administrator could hit
the I want to spoof page where they'd see a list of Super Users to
pick from.  When they pick you, manipulate your authentication store
(probably in session variables) to indicate that the person is really
still Administrator X, but the site should consider them to be Super
User Y.  The same mechanism would hold for the Super User - End User
pairing.

Here's a really simple example.

I'm going to assume you have something like this currently:
session.isAuthenticated (a boolean), session.userId (the identifier of
the user who is authenticated), and session.userType (one of
administrator, superUser, or endUser).  When someone logs in, you do
your checks, and set those three variables.  Then the site reads those
three variables in order to make decisions about what to render and
how.

In that case, you want to add session.baseUserId, and
session.baseUserType that are initialized to the same as userId and
userType on login, and which the site never read.  Then somewhere add
code like this:

cfif listFind(administrator,superuser, session.baseUserType) GT 0
cfif session.userId EQ session.baseUserId
!--- they can spoof, but they aren't currently ---
a href=start_spoofing.cfmstart spoofing/a
cfelse
a href=stop_spoofing.cfmstop spoofing/a
/cfif
/cfif

Those two pages (start_spoofing.cfm and stop_spoofing.cfm) should take
care of setting/clearing session.userId and session.userType to allow
the user to spoof someone else, without touching their real session
state, which is stored in baseUserId and baseUserType.

Obviously that's a really generic description, but hopefully it'll get
you started down the right path.  It overcomes a couple really
important shortcomings with what you proposed as well.  Namely, you
don't have to render an arbitrary user's password out to other users
(which is REALLY bad), and you don't even have to have the passwords
in a readable format (which you really should never do).  It also
keeps your users with some connection to their real user context,
even when they're emulating another user, so they can back out and
return to normal without logging out and having to log back in as
their normal user.

cheers,
barneyb

On Wed, Oct 21, 2009 at 3:56 PM, Asaf Peleg a...@locusenergy.com wrote:

 Hi everyone,

 My websites has different types of profiles that our end users log into that 
 follows a simply hierarchy that goes as follows.

 Administrator - Super Users - End Users

 Where all Super Users are managed by the Administrator and each Super User 
 manages a subset of all End Users.  Each profile is locked by a username and 
 password from a login page. For debugging, auditing or support purposes 
 sometimes it becomes very useful for the Administrator to log into the 
 profile of one of his Super Users or for a Super User to log into one of his 
 End Users profiles since each profile contains different landing pages and 
 content.  I'm trying to achieve this functionality without the need to look 
 up that persons password (for obvious security reasons) so I've been toying 
 around with different methods.

 My first thought was to use CFHTTP but I've had no luck with it.  I thought I 
 could simply do

 cfhttp url=mylogincheck method=post redirect=true
 cfhttpparam type=formfield name=username value=#username#
 cfhttpparam type=formfield name=password value=#password#
 /cfhttp

 and it would redirect me much like a cflocation does except with form data 
 being posted, but I could get that desired behavior.  I've gave up on this 
 and did the following.

 cfoutput
 form action=mylogincheck method=post name=login
 input type=hidden name=username value=#username#
 input type=hidden name=password value=#password#
 script language=JavaScript
 document.login.submit();
 /script
 /form
 /cfoutput

 Which works but I'm concerned this is a not the correct way and could 
 possibly pose security issues since I'm technically creating an HTML page 
 with someones password even though the page redirects instantly. Would anyone 
 care to tell me what I'm doing wrong with CFHTTP or if alternatively, my 
 concerns are unfounded and my solution is in fact secure.

 Thanks,
 Asaf


-- 
Barney Boisvert
bboisv...@gmail.com
http://www.barneyb.

~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:327482
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Using CFHTTP to grab a Google News RSS feed

2009-09-14 Thread Jonathan Jacobs

Hi,

I have a function that has loon worked just fine and recently stopped.  It 
hangs when it tries to access news.google.com using CFHTTP.  Does anyone know 
if something changed at google to cause this problem.  My code to grab the fee 
is as follows.

cfhttp url=http://news.google.com/?q=hipposoutput=rss; method=GET 
resolveurl=No charset=utf-8 useragent=Firefox/cfhttp

CFOUTPUT
#cfhttp.FileContent#
/CFOUTPUT

If I switch to Yahoo news, it works fine as it does for just about any other 
site.  Problem with Yahoo news is that after a few refreshes, I start getting 
error messages from Yahoo instead of the news feed.  I'm happy to sign up or 
purchase the feed if that is necessary, I just need to get it working again.

Thanks.






~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326270
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


re: Using CFHTTP to grab a Google News RSS feed

2009-09-14 Thread Jason Fisher

That path works fine for me, output with cfdump 
var=#xmlParse(cfhttp.fileContent)# /

Looks like the same content entries I get if I just point my browser 
directly to http://news.google.com/?q=hipposoutput=rss

Can your web server resolve the DNS for news.google.com?
 


~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326274
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Get request using cfhttp...possible to see the actual URL sent?

2009-04-06 Thread Azadi Saryev

 I'm working on adding in one of the Digg APIs into an app I'm writing 
 and I'm having problems with it. I was wondering if there was anything 
 that I could inspect which would detail the full URL sent to the API.
 

tried posting a reply from email several times, but HoF seems to be broken...

cfhttp with attribute METHOD=trace will return the requested page in 
FileContent variable, but not as one string - it will be broken down into 
several parts so you will need to parse it together...

Azadi 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321337
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Get request using cfhttp...possible to see the actual URL sent?

2009-04-04 Thread Andy Matthews

I'm working on adding in one of the Digg APIs into an app I'm writing and I'm 
having problems with it. I was wondering if there was anything that I could 
inspect which would detail the full URL sent to the API.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321323
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Get request using cfhttp...possible to see the actual URL sent?

2009-04-04 Thread Jason Fisher

Not quite sure what you're after, but if you're using CFHTTP and trying 
to reconstruct a URL that gets generated from a request, like in the 
case of a redirect, try this:

cfhttp method=GET url=http://www.yourHTTPREquest.com/?blah=blah; 
redirect=No/cfhttp
cfset httpURL = cfhttp.responseHeader.location


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321325
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Get request using cfhttp...possible to see the actual URL sent?

2009-04-04 Thread Gerald Guido

IF I understand the question Firebug would allow you to view the traffic
back and forth from Digg.

G!

On Sat, Apr 4, 2009 at 10:41 AM, Andy Matthews andymatth...@comcast.netwrote:


 I'm working on adding in one of the Digg APIs into an app I'm writing and
 I'm having problems with it. I was wondering if there was anything that I
 could inspect which would detail the full URL sent to the API.



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:321328
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


WEBDAV Put using CFHTTP

2008-11-07 Thread Charles Heizer
Hello,
I have a WEBDAV server set up and I would like to post a file to it. I was 
trying to use cfhttp and I keep getting a Connection Failure: Status code 
unavailable error.

Here is the simple code I'm using to test...

cfhttp method=PUT url=https://myhost.com; username=user password=pass 
throwonerror=true
cfhttpparam type=file name=base.xml file=/tmp/base.xml
/cfhttp

I have confirmed that the user name and password work and that I can add files.

What am I doing wrong?
Thanks,
- Charles

Oh yea, CFMX 7.0.3 on Linux 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314960
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Dave Watts
 I have a WEBDAV server set up and I would like to post a file to it. I was 
 trying to use
 cfhttp and I keep getting a Connection Failure: Status code unavailable 
 error.

Can you check your web server's log files? Are you able to make a
regular HTTPS GET successfully?

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!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314961
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Charles Heizer
Yea, I was able to connect via https using Safari just fine.

  I have a WEBDAV server set up and I would like to post a file to it. 
 I was trying to use
  cfhttp and I keep getting a Connection Failure: Status code 
 unavailable error.
 
 Can you check your web server's log files? Are you able to make a
 regular HTTPS GET successfully?
 
 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! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314962
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Charles Heizer
I also just used Dreamweaver and it worked fine with put and get.

Thanks,
- Charles

  I have a WEBDAV server set up and I would like to post a file to it. 
 I was trying to use
  cfhttp and I keep getting a Connection Failure: Status code 
 unavailable error.
 
 Can you check your web server's log files? Are you able to make a
 regular HTTPS GET successfully?
 
 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! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314964
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Casey Dougall
On Fri, Nov 7, 2008 at 1:54 PM, Charles Heizer [EMAIL PROTECTED] wrote:
 Hello,
 I have a WEBDAV server set up and I would like to post a file to it. I was 
 trying to use cfhttp and I keep getting a Connection Failure: Status code 
 unavailable error.

 Here is the simple code I'm using to test...

 cfhttp method=PUT url=https://myhost.com; username=user password=pass 
 throwonerror=true
cfhttpparam type=file name=base.xml file=/tmp/base.xml
 /cfhttp


You are most likely not doing anything wrong. cfhttp request to https
are a real pain!!! Coldfusion is most likely not reading your SSL cert
correctly and the error sucks!

If you can make a call using http and that works, then it's the ssl cert.

Try this link for information on how to resolve it but it is still a
pain in the ass!

http://www.bpurcell.org/blog/index.cfm?mode=entryentry=843

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314965
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Dave Watts
 Can you check your web server's log files? Are you able to make a
 regular HTTPS GET successfully?

 Yea, I was able to connect via https using Safari just fine.

No, I meant from CF, 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!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314966
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Dave Watts
 You are most likely not doing anything wrong. cfhttp request to https
 are a real pain!!! Coldfusion is most likely not reading your SSL cert
 correctly and the error sucks!

Well, technically, it doesn't have to do with CF not reading the cert
correctly. For a certificate to be accepted, from CF or from a
browser, there has to be a corresponding trusted root certificate.
Each browser comes installed with a relatively large set of public
trusted root certificates from Verisign, Thawte and other vendors. CF
does not come with a large set of trusted root certificates, since
it's not a browser, and you have to install the appropriate trusted
root certificate yourself.

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!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314967
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Charles Heizer
I tried it with http instead and no error, but it also did not put the file.

Any ideas?

You are most likely not doing anything wrong. cfhttp request to https
are a real pain!!! Coldfusion is most likely not reading your SSL cert
correctly and the error sucks!

If you can make a call using http and that works, then it's the ssl cert.

Try this link for information on how to resolve it but it is still a
pain in the ass!

http://www.bpurcell.org/blog/index.cfm?mode=entryentry=843 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Charles Heizer
I seem to be getting closer. I'm now getting a 409 Conflict. I really dont 
know much about the WEBDAV protocol. Does anyone know what a 409 Conflict is.

Thanks


I tried it with http instead and no error, but it also did not put the file.

Any ideas?

http://www.bpurcell.org/blog/index.cfm?mode=entryentry=843 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314969
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Dave Watts
 I seem to be getting closer. I'm now getting a 409 Conflict. I really dont 
 know much about the WEBDAV protocol. Does anyone know what a 409 Conflict is.

It means that there's some reason why WebDAV can't accept the file.
Maybe it's older than the one already there. Maybe you're providing
incorrect parameters. Is there a reason why the name attribute of your
CFHTTPPARAM contains the value base.xml? Typically, this contains
the name of the formfield that contains the file the server's
expecting to receive.

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!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314975
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: WEBDAV Put using CFHTTP

2008-11-07 Thread Charles Heizer
Thanks, I was using the CFHTTPPARAM to put a file which is on the local file 
system to the WEBDAV host. This right now is not a web form just a simple cfm 
page.

Thanks,
- Charles

  I seem to be getting closer. I'm now getting a 409 Conflict. I 
 really dont know much about the WEBDAV protocol. Does anyone know what 
 a 409 Conflict is.
 
 It means that there's some reason why WebDAV can't accept the file.
 Maybe it's older than the one already there. Maybe you're providing
 incorrect parameters. Is there a reason why the name attribute of 
 your
 CFHTTPPARAM contains the value base.xml? Typically, this contains
 the name of the formfield that contains the file the server's
 expecting to receive.
 
 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! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314980
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Submit ASP form using CFHTTP

2008-08-12 Thread Billy Cox
I want to submit a zipcode to a form on another website and then manipulate
the results using cfhttp.filecontent. When I run the code below, it churns
for awhile and then gives me an ASP runtime error.
 
cfhttp url=http://www.thesite.com/default.aspx; resolveurl=yes
method=post
 cfhttpparam name=__EVENTTARGET value= type=formfield encoded=no
 cfhttpparam name=__EVENTARGUMENT value= type=formfield encoded=no
cfhttpparam type=formfield name=__VIEWSTATE
value=/wEPDwULLTIwMjUyMTc5NjdkZA== encoded=no
 cfhttpparam type=formfield name=TxtBox value=77083
 cfhttpparam type=formfield name=Btn value=Find
 cfhttpparam name=__EVENTVALIDATION
value=/wEWBwLBnPWtDgLJr7rmBQK7v+jaBALM9PumDwKGyM+UAgLI5IvWAQLTq+asCA==
type=formfield encoded=no
/cfhttp
 
cfoutput#cfhttp.FileContent#/cfoutput
 
I copied the values for  __VIEWSTATE and __EVENTVALIDATION form fields from
the 'view source', but they seem to be server-generated values aimed at
preventing what I'm trying to do. Is there any way around this?
 
I don't think that __EVENTTARGET and __EVENTARGUMENT are required.
 
 
Billy Cox
Old World Spices
[EMAIL PROTECTED]
 
 
 




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310888
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Submit ASP form using CFHTTP

2008-08-12 Thread Dave Phillips
They might be setting some cookies initially and also a session id of sorts.
What you may need to do is hit their 'form' page once and capture the
cookies (just dump the cfhttp scope after an initial hit and you can find
them there - I think http-cookie scope, not sure).  Then you will need to
include those when you make the call to the form processor page.  It will
take some finagling, but you should be able to do it.

Dave

-Original Message-
From: Billy Cox [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 11, 2008 2:38 PM
To: CF-Talk
Subject: Submit ASP form using CFHTTP

I want to submit a zipcode to a form on another website and then manipulate
the results using cfhttp.filecontent. When I run the code below, it churns
for awhile and then gives me an ASP runtime error.
 
cfhttp url=http://www.thesite.com/default.aspx; resolveurl=yes
method=post
 cfhttpparam name=__EVENTTARGET value= type=formfield encoded=no
 cfhttpparam name=__EVENTARGUMENT value= type=formfield encoded=no
cfhttpparam type=formfield name=__VIEWSTATE
value=/wEPDwULLTIwMjUyMTc5NjdkZA== encoded=no
 cfhttpparam type=formfield name=TxtBox value=77083
 cfhttpparam type=formfield name=Btn value=Find
 cfhttpparam name=__EVENTVALIDATION
value=/wEWBwLBnPWtDgLJr7rmBQK7v+jaBALM9PumDwKGyM+UAgLI5IvWAQLTq+asCA==
type=formfield encoded=no
/cfhttp
 
cfoutput#cfhttp.FileContent#/cfoutput
 
I copied the values for  __VIEWSTATE and __EVENTVALIDATION form fields from
the 'view source', but they seem to be server-generated values aimed at
preventing what I'm trying to do. Is there any way around this?
 
I don't think that __EVENTTARGET and __EVENTARGUMENT are required.
 
 
Billy Cox
Old World Spices
[EMAIL PROTECTED]


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310889
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Submit ASP form using CFHTTP

2008-08-12 Thread Matthew Small
You can't pass these values directly... think of it as a series of steps.  
Request the page, parse out the necessary information (viewstate, event 
validation), pass them into the next request.  

Get a fiddler trace of an actual request that you make in a browser, and use 
the event target, event argument values from that trace to pass in your second 
request.



I want to submit a zipcode to a form on another website and then manipulate
the results using cfhttp.filecontent. When I run the code below, it churns
for awhile and then gives me an ASP runtime error.
 
cfhttp url=http://www.thesite.com/default.aspx; resolveurl=yes
method=post
 cfhttpparam name=__EVENTTARGET value= type=formfield encoded=no
 cfhttpparam name=__EVENTARGUMENT value= type=formfield encoded=no
cfhttpparam type=formfield name=__VIEWSTATE
value=/wEPDwULLTIwMjUyMTc5NjdkZA== encoded=no
 cfhttpparam type=formfield name=TxtBox value=77083
 cfhttpparam type=formfield name=Btn value=Find
 cfhttpparam name=__EVENTVALIDATION
value=/wEWBwLBnPWtDgLJr7rmBQK7v+jaBALM9PumDwKGyM+UAgLI5IvWAQLTq+asCA==
type=formfield encoded=no
/cfhttp
 
cfoutput#cfhttp.FileContent#/cfoutput
 
I copied the values for  __VIEWSTATE and __EVENTVALIDATION form fields from
the 'view source', but they seem to be server-generated values aimed at
preventing what I'm trying to do. Is there any way around this?
 
I don't think that __EVENTTARGET and __EVENTARGUMENT are required.
 
 
Billy Cox
Old World Spices
[EMAIL PROTECTED] 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310892
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Submit ASP form using CFHTTP

2008-08-12 Thread Gerald Guido
Dump out the responseHeader to see if any cookies are being set.

cfdump var=#cfhttp.responseHeader#

You can see the cookie(s) using this:

cfoutput
 #cfhttp.responseHeader[Set-Cookie]#
/cfoutput


On Mon, Aug 11, 2008 at 3:38 PM, Billy Cox [EMAIL PROTECTED] wrote:

 I want to submit a zipcode to a form on another website and then manipulate
 the results using cfhttp.filecontent. When I run the code below, it churns
 for awhile and then gives me an ASP runtime error.

 cfhttp url=http://www.thesite.com/default.aspx; resolveurl=yes
 method=post
  cfhttpparam name=__EVENTTARGET value= type=formfield encoded=no
  cfhttpparam name=__EVENTARGUMENT value= type=formfield
 encoded=no
 cfhttpparam type=formfield name=__VIEWSTATE
 value=/wEPDwULLTIwMjUyMTc5NjdkZA== encoded=no
  cfhttpparam type=formfield name=TxtBox value=77083
  cfhttpparam type=formfield name=Btn value=Find
  cfhttpparam name=__EVENTVALIDATION
 value=/wEWBwLBnPWtDgLJr7rmBQK7v+jaBALM9PumDwKGyM+UAgLI5IvWAQLTq+asCA==
 type=formfield encoded=no
 /cfhttp

 cfoutput#cfhttp.FileContent#/cfoutput

 I copied the values for  __VIEWSTATE and __EVENTVALIDATION form fields from
 the 'view source', but they seem to be server-generated values aimed at
 preventing what I'm trying to do. Is there any way around this?

 I don't think that __EVENTTARGET and __EVENTARGUMENT are required.


 Billy Cox
 Old World Spices
 [EMAIL PROTECTED]







 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310894
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extract text from webpage content using cfhttp

2008-07-10 Thread Claude Schneegans
 Maybe wrap it in
something like !- [BEGIN TEXT TO GRAB] -- This is the text you want
indexed !-- [END TEXT TO GRAB] --

Pretty good idea! And the use CF_REExtract to grab it ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308849
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Extract text from webpage content using cfhttp

2008-07-10 Thread Bobby Hartsfield
You are going to make me write cf_FreeExtract aren't you...

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 10, 2008 8:43 AM
To: CF-Talk
Subject: Re: Extract text from webpage content using cfhttp

 Maybe wrap it in
something like !- [BEGIN TEXT TO GRAB] -- This is the text you want
indexed !-- [END TEXT TO GRAB] --

Pretty good idea! And the use CF_REExtract to grab it ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308917
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Extract text from webpage content using cfhttp

2008-07-09 Thread Anthony Webb
I need to index web page contents for doing verity (or similar) searching.  I'd 
like to insert just the text that a web page returns and not any of the other 
stuff (like html, JS, CSS, images, etc)  

I noticed that cfhttp.filecontent returns the entire contents of the page, 
anyone have a good way to get at just the text?

Also, I am storing the results in a mysql database and was anticipating using 
the text data type, I assume that is the best way to go? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308820
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Extract text from webpage content using cfhttp

2008-07-09 Thread Andy Matthews
There's a built function at CFLib.org which will strip HTML tags:
http://cflib.org/udf/stripHTML

You could do a quick regex to get just the contents of the body tag, then
run that string through the StripHTML function. That'll give you any text
contained within HTML tags like p, div, etc.

At that point you could do whatever you liked with the result.


andy

-Original Message-
From: Anthony Webb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2008 12:04 PM
To: CF-Talk
Subject: Extract text from webpage content using cfhttp

I need to index web page contents for doing verity (or similar) searching.
I'd like to insert just the text that a web page returns and not any of the
other stuff (like html, JS, CSS, images, etc)  

I noticed that cfhttp.filecontent returns the entire contents of the page,
anyone have a good way to get at just the text?

Also, I am storing the results in a mysql database and was anticipating
using the text data type, I assume that is the best way to go? 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308821
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extract text from webpage content using cfhttp

2008-07-09 Thread Larry Lyons
Michael Dinowitz has a great presentation/tutorial on how to do exactly that. 
http://www.houseoffusion.com/httpagent.ppt

hth,
larry

 I need to index web page contents for doing verity (or similar) 
 searching.  I'd like to insert just the text that a web page returns 
 and not any of the other stuff (like html, JS, CSS, images, etc)  
 
 I noticed that cfhttp.filecontent returns the entire contents of the 
 page, anyone have a good way to get at just the text?
 
 Also, I am storing the results in a mysql database and was 
 anticipating using the text data type, I assume that is the best way 
 to go? 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308822
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extract text from webpage content using cfhttp

2008-07-09 Thread Anthony Webb
Thanks for the tip I will have a look at doing this using some regex.

I did find this excellent sud tutorial on extracting text for indexing from 
html.  I really wish there was something equivalent in a nice cfc, because 
there is ton here that I really never considered.

http://nadeausoftware.com/articles/2008/04/php_tip_how_extract_keywords_web_page
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308823
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Extract text from webpage content using cfhttp

2008-07-09 Thread Anthony Webb
I'm not so set on extracting specific elements from a page, more about indexing 
all the actual text on a page to index and show our users pages like their 
search term.  Search engines do this extraction and analysis on web pages. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308824
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Extract text from webpage content using cfhttp

2008-07-09 Thread Bobby Hartsfield
If you are creating the templates that are generating the HTML then you can
make it very easy on yourself by wrapping the text blocks in some kind of
marker that you can find in the cfhttp.filecontent later. Maybe wrap it in
something like !- [BEGIN TEXT TO GRAB] -- This is the text you want
indexed !-- [END TEXT TO GRAB] --

Then in cffile.filecontent, search for blocks of text between the two
comment blocks.

-Original Message-
From: Anthony Webb [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 09, 2008 1:04 PM
To: CF-Talk
Subject: Extract text from webpage content using cfhttp

I need to index web page contents for doing verity (or similar) searching.
I'd like to insert just the text that a web page returns and not any of the
other stuff (like html, JS, CSS, images, etc)  

I noticed that cfhttp.filecontent returns the entire contents of the page,
anyone have a good way to get at just the text?

Also, I am storing the results in a mysql database and was anticipating
using the text data type, I assume that is the best way to go? 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308835
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Extract text from webpage content using cfhttp

2008-07-09 Thread denstar
I wrote a website 'ripper' that I'll release someday... it's nice.

But it sounds like you're not doing anything as complex as what I was
doing, you may just use...

hmm... I can't find it right now, but there's a java class that does a
pretty good job of converting HTML to plain text.

If that's your only requirement, (although how would you highlight and
whatnot if you didn't have the rest?  It would look funky, I mean)
there are several ways to transform- oh, an XSL or something!  That's
really easy too.

Assuming the content is sorta basically well-formed, which would make
an ass outta me for doing, were I to do so.

Because it hardly ever is.

-- 
well, it is much better these days.  Thank you code generators!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:308838
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Web Service Request using CFHTTP

2008-05-29 Thread dominic scanlan
None of the links work. Direct to the Adobe.com site :( 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306240
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Web Service Request using CFHTTP

2008-05-28 Thread Dominic Scanlan
I'm trying to make a request to a .NET 2 Web Service from CF5 using
cfhttp.

the soap envelope that i am creating is:

cfsavecontent variable=localscope.soapRequest
soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body
validate_DPS xmlns=http://tempuri.org/; XMLIn
wsihipnewaccount003pAuthCode/pSecFunctionNEWACCOUNT/pSecFunction
pHIPAgreeRef7/pHIPAgreeRef/wsihipnewaccount003 /XMLIn
/validate_DPS /soap:Body /soap:Envelope /cfsavecontent

which constantly returns:

Expression
An error occured while Parsing an XML document.
Premature end of file.

when i replace the XML within the XMLIN tags to a simply string
x:

soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body
validate_DPS xmlns=http://tempuri.org/; XMLIn xx /XMLIn
/validate_DPS /soap:Body /soap:Envelope 

the request makes it to the web service and a get the expected error
reply.

the CFHTTP code is:

cfhttp url=http://development003/DPS/Dps.asmx?WSDL; port=80
method=post cfhttpparam type=Header name=Connection
value=Keep-Alive cfhttpparam type=header name=content-type
value=text/xml cfhttpparam type=Header name=User-Agent
value=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) cfhttpparam
type=Header name=charset value=utf-8 cfhttpparam type=body
name=validate_DPS value=#localscope.soapRequest# /cfhttp

If anyone could think of any ideas that would be a great help.

Thanks
Dom 



Dominic Scanlan
Developer

telephone: 0870 907 9400
e-mail: [EMAIL PROTECTED]
website: www.lms.com


HIPs Conveyancing Remortgaging Valuations

Legal Marketing Services Ltd.
LMS House, Lloyd Drive, Cheshire Oaks Business Park, Cheshire, CH65 9HQ
Tel: 0870 907 9400 Fax: 0870 907 9410www.lms.com
Registered in England  Wales No 4450849
CONFIDENTIALITY NOTICE
This communication and the information it contains is intended for the person 
or organisation to whom it is addressed. Its contents are confidential and may 
be protected in law.  Unauthorised use, copying or disclosure of any of it may 
be unlawful. If you are not the intended recipient, please contact us 
immediately.

This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
__

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306137
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Web Service Request using CFHTTP

2008-05-28 Thread dominic scanlan
I'm trying to make a request to a .NET 2 Web Service from CF5 using cfhttp.

the soap envelope that i am creating is:

cfsavecontent variable=localscope.soapRequest
soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body 
validate_DPS xmlns=http://tempuri.org/; XMLIn 
wsihipnewaccount003pAuthCode/pSecFunctionNEWACCOUNT/pSecFunction
pHIPAgreeRef7/pHIPAgreeRef/wsihipnewaccount003 /XMLIn 
/validate_DPS /soap:Body /soap:Envelope 
/cfsavecontent

which constantly returns:

Expression
An error occured while Parsing an XML document.
Premature end of file.

when i replace the XML within the XMLIN tags to a simply string x:

soap:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xmlns:xsd=http://www.w3.org/2001/XMLSchema; 
xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; soap:Body 
validate_DPS xmlns=http://tempuri.org/; XMLIn xx /XMLIn 
/validate_DPS /soap:Body /soap:Envelope 

the request makes it to the web service and a get the expected error reply.

the CFHTTP code is:

cfhttp url=http://development003/DPS/Dps.asmx?WSDL; port=80 method=post
cfhttpparam type=Header name=Connection value=Keep-Alive
cfhttpparam type=header name=content-type value=text/xml
cfhttpparam type=Header name=User-Agent value=Mozilla/4.0 (compatible; 
MSIE 6.0; Windows NT 5.0)
cfhttpparam type=Header name=charset value=utf-8
cfhttpparam type=body name=validate_DPS value=#localscope.soapRequest#
/cfhttp

If anyone could think of any ideas that would be a great help.

Thanks
Dom 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306136
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Web Service Request using CFHTTP

2008-05-28 Thread Bilal Soylu
Dom,
a while back when using CF5 we also used a framework for soap that had all the 
parts build in UDFs. 
(http://www.fusionauthority.com/tech-and-tags/3058-whats-new-in-the-tag-gallery.htm)

This may be helpful for you to review.

Cheers,
Bilal



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306187
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Error using CFHTTP

2007-09-16 Thread Claude Schneegans
 Does this mean that the return value is ;URL Interface?

No, but apparently you are using CFHTTP to create a query, and the first 
line on the file contains the column names.
The problem is that URL Interface is not a valid name for CF, because 
of the space it contains.
Use the attribute COLUMNS to overwrite those in line on, and use valid 
names.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288543
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Error using CFHTTP

2007-09-15 Thread Bruce Sorge
I am getting this error when I use CFHTTP:

 

The column name ;URL Interface
 is invalid.

 

Does this mean that the return value is ;URL Interface? If so, how do I get
around this?

 

Thanks,

 

Bruce

 

 



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:288532
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-05 Thread Michael Nguyen
 No, you must check with the original login form on the .NET application.

Here is how I check with the original login form on the .Net app.

1. Delete all cookies
2. Go to login form in .Net.
3. View cookie: There is a cookie ASP.NET_SessionId=4mnaix453yw12h55ox3myn45
4. DELETE that cookie
5. Click Submit
6. View Cookie: Two cookies: ASP.NET_SessionId=n4dg3azlmh4ga1mm2wnmmq55
(note: different value) and .ASPXAUTH=314508822A3EDF0...
7. Log off then view cookie: There is only
ASP.NET_SessionId=n4dg3azlmh4ga1mm2wnmmq55 but .ASPXAUTH=314508822A3EDF0...
does not exist.

 The thing that is weird is that, with cookies disabled, the login action 
 will fail.
 The question then is how does the login action know that cookies are 
 disabled?

I thought that this is the key but I don't have the answer. :(
I am 100% sure but I think that the thing which you asked me to disable
cookie and try to login using login form is a very important which gave us
the reason why login with cfhttp failed.

 You told me that the login fails when cookies are disabled, but what if 
 they are enabled,
 but Javascript is disabled ?

The login action is working well with JS disabled and cookie is enabled.

 Finally, is there an address (and some code + password) I could use to 
 test the real application
 by myself?

I would be more than happy to give you one when I get a new testing account.
Probably not soon as it's public holidays now in Australia :(

Anyway, I really appreciate your time and help so far




-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 5 November 2006 1:12 PM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 2- Go to http://localhost/SingleLogin/login.cfm (which is the login form)
3- View Cookies: There is a cookie has been written by CF with CFID,

No, you must check with the original login form on the .NET application.
The CF template you've made does not set any cookie (except the one set 
by CF).
The idea is the check if the ORIGINAL login form in the .NET application
sets a cookie, because this is the one you must fake when you simulate 
the login form by CFHTTP.

The thing that is weird is that, with cookies disabled, the login action 
will fail.
The question then is how does the login action know that cookies are 
disabled?

The only way I have in mind is that the action will verify the presence 
of a cookie
set by the form.

There is also a Javascript property cookieEnabled that the system can 
also check.

You told me that the login fails when cookies are disabled, but what if 
they are enabled,
but Javascript is disabled ?

Finally, is there an address (and some code + password) I could use to 
test the real application
by myself?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
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:259211
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-05 Thread Claude Schneegans
1. Delete all cookies
2. Go to login form in .Net.
3. View cookie: There is a cookie ASP.NET_SessionId=4mnaix453yw12h55ox3myn45

Ah ah! This is their session Id. Now if they keep a session live, they 
may also have some
data stored in it, and if that session is not found by the action 
template, this may be
why the login does not work.
Then you have to make sure your CF script will CFHTTP the form first to 
get that session cookie,
then pass it when you CFHTTP the action for the login.

 4. DELETE that cookie
 5. Click Submit

So you deleted the cookie before calling the login action? Then did the 
login succeed?
If it did, it does not prove the cookie is not needed, I'm not sure that 
deleting a cookie or all
cookies wil delete the ones already in memory.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:259213
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Using CFHTTP to login

2006-11-05 Thread Michael Nguyen
4. DELETE that cookie
 5. Click Submit

 So you deleted the cookie before calling the login action? Then did the 
 login succeed?

Sorry that I didn't tell you before, it succeeds.
The same as I did with the login form in CF. We didn't have any cookie from
..net yet when we go to login form in CF but still working well.



-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Monday, 6 November 2006 1:19 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

1. Delete all cookies
2. Go to login form in .Net.
3. View cookie: There is a cookie ASP.NET_SessionId=4mnaix453yw12h55ox3myn45

Ah ah! This is their session Id. Now if they keep a session live, they 
may also have some
data stored in it, and if that session is not found by the action 
template, this may be
why the login does not work.
Then you have to make sure your CF script will CFHTTP the form first to 
get that session cookie,
then pass it when you CFHTTP the action for the login.

 4. DELETE that cookie
 5. Click Submit

So you deleted the cookie before calling the login action? Then did the 
login succeed?
If it did, it does not prove the cookie is not needed, I'm not sure that 
deleting a cookie or all
cookies wil delete the ones already in memory.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
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:259214
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-05 Thread Claude Schneegans
 The same as I did with the login form in CF. We didn't have any 
cookie from
...net yet when we go to login form in CF but still working well.

Now wait a minute. The CF FORM works, but then the ACTION requested by 
CFHTTP doesn't right?
But the CF form doesn't have the session cookie set by the .NET form, 
and then cannot transmit it to
the action. This could be enough to make the login fails.

So, if I were you, I'd try this :
1. CFHTTP the .NET FORM first,
2. get the session cookie,
3. CFHTTP the ACTION with this session cookie.

You already tried something similar:

!--- First http request to get cookie info ---
cfhttp url=http://www.mycompany.com/Login.aspx; method=get
resolveurl=yes port=80 throwonerror=yes redirect=yes
useragent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
Gecko/20060909 Firefox/1.5.0.7/

!--- create cookieStruct ---



but here you call the action page, you should call the FORM page to get 
the correct
session cookie, not the action page.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:259218
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Using CFHTTP to login

2006-11-05 Thread Michael Nguyen
Yep, I see your point, you reminded me about it before. In the .Net, the
login.aspx is the login form as well as login action as it submits to
itself. The reason why I did not explain it that clearly as I didn't think
it matter (?) and we have a lot messages just discussed on what is what and 
Sorry if it make some different ;)


 

-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Monday, 6 November 2006 2:06 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 The same as I did with the login form in CF. We didn't have any 
cookie from
net yet when we go to login form in CF but still working well.

Now wait a minute. The CF FORM works, but then the ACTION requested by 
CFHTTP doesn't right?
But the CF form doesn't have the session cookie set by the .NET form, 
and then cannot transmit it to
the action. This could be enough to make the login fails.

So, if I were you, I'd try this :
1. CFHTTP the .NET FORM first,
2. get the session cookie,
3. CFHTTP the ACTION with this session cookie.

You already tried something similar:

!--- First http request to get cookie info ---
cfhttp url=http://www.mycompany.com/Login.aspx; method=get
resolveurl=yes port=80 throwonerror=yes redirect=yes
useragent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
Gecko/20060909 Firefox/1.5.0.7/

!--- create cookieStruct ---
.


but here you call the action page, you should call the FORM page to get 
the correct
session cookie, not the action page.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
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:259221
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-04 Thread Claude Schneegans
 The reason is the html form (login1.cfm) is working
well and I try to simulate the login process exactly as we login as that
html form.

Yes, but you are doing it from your browser.
If the login procedure uses tricks to detect if the form really comes 
from a browser,
or from a server, they may use some other characteristics you didn't 
think of.

 remember you asked me to try to disable cookie and submit the form that
works? I got the same screen as I do with cfhttp which is login form WITHOUT
any error message. I would suggest that the problem might be is the asp.net
think that the cookie is disabled and the login process does not happen.

I think this is it indeed. There must be something not perfect in the 
way you return the cookies
to the .Net application. I would concentrate my efforts on this.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:259159
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-04 Thread Claude Schneegans
 Yes, but you are doing it from your browser.

Another try:
When you call the login action from your CF login form, the request is 
actually sent by your browser.
Then, if may have some cookie in it set previously by the server, it 
will recognize it and the
login is accepted.
When calling from CFHTTP, you don't have these cookies, and the login fails.

Now, can you try again your CF login form just after having erased all 
your cookies.
If some check cookie was set initially by the normal login form, your CF 
form should fail now.

Then you know what you have to look for.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:259165
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-04 Thread Michael Nguyen
Thx Claude, here is what I have been trying

1- Delete all Fire fox cookies
2- Go to http://localhost/SingleLogin/login.cfm (which is the login form)
3- View Cookies: There is a cookie has been written by CF with CFID,
CFTOKEN, JSESSIONID. Note: No cookie from ASP.net
4- Click Submit Result: Is redirected to member home page: successful
5- View cookie: There are cookies .ASPXAUTH=59EDCFD5BF... and
ASP.NET_SessionId=yynrg545cibzz4554zrsfh45
6- Logout
7- View cookie: There is only ASP.NET_SessionId=yynrg545cibzz4554zrsfh45,
the .ASPXAUTH has been expired and doesn't exist.

Is there anything you think of?



-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 5 November 2006 3:04 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

 Yes, but you are doing it from your browser.

Another try:
When you call the login action from your CF login form, the request is 
actually sent by your browser.
Then, if may have some cookie in it set previously by the server, it 
will recognize it and the
login is accepted.
When calling from CFHTTP, you don't have these cookies, and the login fails.

Now, can you try again your CF login form just after having erased all 
your cookies.
If some check cookie was set initially by the normal login form, your CF 
form should fail now.

Then you know what you have to look for.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
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:259187
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to login

2006-11-04 Thread Claude Schneegans
 2- Go to http://localhost/SingleLogin/login.cfm (which is the login form)
3- View Cookies: There is a cookie has been written by CF with CFID,

No, you must check with the original login form on the .NET application.
The CF template you've made does not set any cookie (except the one set 
by CF).
The idea is the check if the ORIGINAL login form in the .NET application
sets a cookie, because this is the one you must fake when you simulate 
the login form by CFHTTP.

The thing that is weird is that, with cookies disabled, the login action 
will fail.
The question then is how does the login action know that cookies are 
disabled?

The only way I have in mind is that the action will verify the presence 
of a cookie
set by the form.

There is also a Javascript property cookieEnabled that the system can 
also check.

You told me that the login fails when cookies are disabled, but what if 
they are enabled,
but Javascript is disabled ?

Finally, is there an address (and some code + password) I could use to 
test the real application
by myself?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:259188
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-04 Thread Andrew Scott
You know in the amount if time it is taking to debug a your single sign in,
and you haven't even touched the SP side of things yet.

You would have been better of looking at ADS (Active Directory Services) or
apaches equivalant.

Or even look at a 3rd part solution where they deal in this all the time.

All your headache so far is one way. Of course I am assuming that the
asp.net application is yours to login into, if it isn;t then you better
check with the onwer of the website to make sure you are not breaking any of
their conditions to the website.



On 11/5/06, Claude Schneegans [EMAIL PROTECTED] wrote:

 2- Go to http://localhost/SingleLogin/login.cfm (which is the login
 form)
 3- View Cookies: There is a cookie has been written by CF with CFID,

 No, you must check with the original login form on the .NET application.
 The CF template you've made does not set any cookie (except the one set
 by CF).
 The idea is the check if the ORIGINAL login form in the .NET application
 sets a cookie, because this is the one you must fake when you simulate
 the login form by CFHTTP.

 The thing that is weird is that, with cookies disabled, the login action
 will fail.
 The question then is how does the login action know that cookies are
 disabled?

 The only way I have in mind is that the action will verify the presence
 of a cookie
 set by the form.

 There is also a Javascript property cookieEnabled that the system can
 also check.

 You told me that the login fails when cookies are disabled, but what if
 they are enabled,
 but Javascript is disabled ?

 Finally, is there an address (and some code + password) I could use to
 test the real application
 by myself?

 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.


 

~|
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:259189
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Adrian
CFHTTP is coldfusion. coldfusion runs on the server. your code will log the
server in.

Do you want to log the server in, or the client in?


On 03/11/06, Michael Nguyen [EMAIL PROTECTED] wrote:

 Hi everyone,



 I am still struggling with using cfhttp to log in into an ASP.NET app.



 The weird thing is when I used the normal html form (see bellow) then I
 could log in successfully:



 form method=post action=http://www.mycompany.com/Login.aspx;
 name=form1

   input name=CompanyCode type=hidden maxlength=12 value= ccode /

   input name=UserEmail type=hidden maxlength=60 value=
 [EMAIL PROTECTED]  /

   input  name=UserPassword type=password maxlength=50 value=
 password/

   input type=submit name=SigninBtn value=Login /

 /form



 However, when I use cfhttp (bellow) to login then I could not log in:



 cfhttp url=http://www.mycompany.com/Login.aspx; method=post
 resolveurl=yes port=80

  redirect=yes

  useragent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7
 )
 Gecko/20060909 Firefox/1.5.0.7

   cfhttpparam type=formfield name=CompanyCode value=ccode/

   cfhttpparam type=formfield name=UserEmail
 value=[EMAIL PROTECTED]/

   cfhttpparam type=formfield  name=UserPassword
 value=password/

   cfhttpparam type=formfield  name=SigninBtn value=Login/

 /cfhttp



 Can anyone tell me how differently the asp.Net treats to these above two
 approaches and why I couldn't login when using cfhttp?



 Any help is appreciated.



 Michael



 

~|
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:258967
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Andrew Scott
Adrian,


*LOL* *LOL*

I think the dude knows that.


Michael, your problem lies with the fact you are connecting to the form
page. That is not what you need to do. What you nned to do is connect to the
processing page that the form is connecting to, and using cfhttp the way you
are pass the username and password but not the submit button.

So, if the asp.net page as you have the form page is connecting (submitting)
to the /abc.asp then that is where your cfhttp needs to point too, with the
same fields as the username and password field that is being inouted on the
asp.net form.

HTH

Some people are jsut so full of useless information (Yes I am refering to
you Adrian) and yes I am being sarcastic to boot with you Adrian.




On 11/3/06, Adrian [EMAIL PROTECTED] wrote:

 CFHTTP is coldfusion. coldfusion runs on the server. your code will log
 the
 server in.

 Do you want to log the server in, or the client in?


 On 03/11/06, Michael Nguyen [EMAIL PROTECTED] wrote:
 
  Hi everyone,
 
 
 
  I am still struggling with using cfhttp to log in into an ASP.NET app.
 
 
 
  The weird thing is when I used the normal html form (see bellow) then I
  could log in successfully:
 
 
 
  form method=post action=http://www.mycompany.com/Login.aspx;
  name=form1
 
input name=CompanyCode type=hidden maxlength=12 value= ccode
 /
 
input name=UserEmail type=hidden maxlength=60 value=
  [EMAIL PROTECTED]  /
 
input  name=UserPassword type=password maxlength=50 value=
  password/
 
input type=submit name=SigninBtn value=Login /
 
  /form
 
 
 
  However, when I use cfhttp (bellow) to login then I could not log in:
 
 
 
  cfhttp url=http://www.mycompany.com/Login.aspx; method=post
  resolveurl=yes port=80
 
   redirect=yes
 
   useragent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
 1.8.0.7
  )
  Gecko/20060909 Firefox/1.5.0.7
 
cfhttpparam type=formfield name=CompanyCode
 value=ccode/
 
cfhttpparam type=formfield name=UserEmail
  value=[EMAIL PROTECTED]/
 
cfhttpparam type=formfield  name=UserPassword
  value=password/
 
cfhttpparam type=formfield  name=SigninBtn
 value=Login/
 
  /cfhttp
 
 
 
  Can anyone tell me how differently the asp.Net treats to these above two
  approaches and why I couldn't login when using cfhttp?
 
 
 
  Any help is appreciated.
 
 
 
  Michael
 
 
 
 

 

~|
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:258968
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to login

2006-11-03 Thread Claude Schneegans
 What you nned to do is connect to the
processing page that the form is connecting to,

Well, as far as I can see, this is what he does.

But what is the server he is trying to log to sends back a cookie to 
keep the session alive ?
The CF template which sends the login request will not take care of it.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:258969
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Andrew Scott
yes it can.



On 11/3/06, Claude Schneegans [EMAIL PROTECTED] wrote:

 What you nned to do is connect to the
 processing page that the form is connecting to,

 Well, as far as I can see, this is what he does.

 But what is the server he is trying to log to sends back a cookie to
 keep the session alive ?
 The CF template which sends the login request will not take care of it.

 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.


 

~|
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:258972
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to login

2006-11-03 Thread Andrew Scott
Claude I am in a funny mood, and your as stupid as Michael.


If the chhttp as this guy is trying to connerct to is login.asp, they says
to me it is the login form:-)

Gee some people are really stupid today...




On 11/3/06, Andrew Scott [EMAIL PROTECTED] wrote:

 yes it can.



 On 11/3/06, Claude Schneegans [EMAIL PROTECTED] wrote:
 
  What you nned to do is connect to the
  processing page that the form is connecting to,
 
  Well, as far as I can see, this is what he does.
 
  But what is the server he is trying to log to sends back a cookie to
  keep the session alive ?
  The CF template which sends the login request will not take care of it.
 
  --
  ___
  REUSE CODE! Use custom tags;
  See http://www.contentbox.com/claude/customtags/tagstore.cfm
  (Please send any spam to this address: [EMAIL PROTECTED])
  Thanks.
 
 
  

~|
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:258973
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to login

2006-11-03 Thread Andrew Scott
And before one person jumps in. The guy made it very clear that he was
connecting to the form, and to the untrained eye they will not see it. But
if you are a guru then it is obvious as the answer is in is post.

Regards,
Andrew Scott
Senior Coldfusion Programmer




On 11/3/06, Andrew Scott [EMAIL PROTECTED] wrote:

 Claude I am in a funny mood, and your as stupid as Michael.


 If the chhttp as this guy is trying to connerct to is login.asp, they says
 to me it is the login form:-)

 Gee some people are really stupid today...




 On 11/3/06, Andrew Scott [EMAIL PROTECTED] wrote:
 
  yes it can.
 
 
 
  On 11/3/06, Claude Schneegans [EMAIL PROTECTED]  wrote:
  
   What you nned to do is connect to the
   processing page that the form is connecting to,
  
   Well, as far as I can see, this is what he does.
  
   But what is the server he is trying to log to sends back a cookie to
   keep the session alive ?
   The CF template which sends the login request will not take care of
   it.
  
   --
   ___
   REUSE CODE! Use custom tags;
   See http://www.contentbox.com/claude/customtags/tagstore.cfm
   (Please send any spam to this address: [EMAIL PROTECTED])
   Thanks.
  
  
   

~|
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:258974
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to login

2006-11-03 Thread Ben Koshy
Your approach is correct...however After you use the CFHTTP client to login 
then what?   Its only the CFHTTP client that is logged in... not your local 
machine or server.  Dump your CFHTTP.FileContent... what do you see?  I'm 
not sure if there's a way to maintain a login using the CFHTTP client.

- Original Message - 
From: Michael Nguyen [EMAIL PROTECTED]
To: CF-Talk cf-talk@houseoffusion.com
Sent: Friday, November 03, 2006 10:37 AM
Subject: Using CFHTTP to login


 Hi everyone,



 I am still struggling with using cfhttp to log in into an ASP.NET app.



 The weird thing is when I used the normal html form (see bellow) then I
 could log in successfully:



 form method=post action=http://www.mycompany.com/Login.aspx;
 name=form1

  input name=CompanyCode type=hidden maxlength=12 value= ccode /

  input name=UserEmail type=hidden maxlength=60 value=
 [EMAIL PROTECTED]  /

  input  name=UserPassword type=password maxlength=50 value=
 password/

  input type=submit name=SigninBtn value=Login /

 /form



 However, when I use cfhttp (bellow) to login then I could not log in:



 cfhttp url=http://www.mycompany.com/Login.aspx; method=post
 resolveurl=yes port=80

 redirect=yes

 useragent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7)
 Gecko/20060909 Firefox/1.5.0.7

  cfhttpparam type=formfield name=CompanyCode value=ccode/

  cfhttpparam type=formfield name=UserEmail
 value=[EMAIL PROTECTED]/

  cfhttpparam type=formfield  name=UserPassword
 value=password/

  cfhttpparam type=formfield  name=SigninBtn value=Login/

 /cfhttp



 Can anyone tell me how differently the asp.Net treats to these above two
 approaches and why I couldn't login when using cfhttp?



 Any help is appreciated.



 Michael



 

~|
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:258975
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Andrew Scott
Ben, is it correct.

The dude as a username and a password and god forbid a submit button as well
to a logn.asp page.

It is not correct, he needs to be pointing to the page that the
login.apspage sends that informartion too.

Yep something is in the water this week.


On 11/3/06, Ben Koshy [EMAIL PROTECTED] wrote:

 Your approach is correct...however After you use the CFHTTP client to
 login
 then what?   Its only the CFHTTP client that is logged in... not your
 local
 machine or server.  Dump your CFHTTP.FileContent... what do you
 see?  I'm
 not sure if there's a way to maintain a login using the CFHTTP client.

 - Original Message -
 From: Michael Nguyen [EMAIL PROTECTED]
 To: CF-Talk cf-talk@houseoffusion.com
 Sent: Friday, November 03, 2006 10:37 AM
 Subject: Using CFHTTP to login


  Hi everyone,
 
 
 
  I am still struggling with using cfhttp to log in into an ASP.NET app.
 
 
 
  The weird thing is when I used the normal html form (see bellow) then I
  could log in successfully:
 
 
 
  form method=post action=http://www.mycompany.com/Login.aspx;
  name=form1
 
   input name=CompanyCode type=hidden maxlength=12 value= ccode
 /
 
   input name=UserEmail type=hidden maxlength=60 value=
  [EMAIL PROTECTED]  /
 
   input  name=UserPassword type=password maxlength=50 value=
  password/
 
   input type=submit name=SigninBtn value=Login /
 
  /form
 
 
 
  However, when I use cfhttp (bellow) to login then I could not log in:
 
 
 
  cfhttp url=http://www.mycompany.com/Login.aspx; method=post
  resolveurl=yes port=80
 
  redirect=yes
 
  useragent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
 1.8.0.7)
  Gecko/20060909 Firefox/1.5.0.7
 
   cfhttpparam type=formfield name=CompanyCode
 value=ccode/
 
   cfhttpparam type=formfield name=UserEmail
  value=[EMAIL PROTECTED]/
 
   cfhttpparam type=formfield  name=UserPassword
  value=password/
 
   cfhttpparam type=formfield  name=SigninBtn value=Login/
 
  /cfhttp
 
 
 
  Can anyone tell me how differently the asp.Net treats to these above two
  approaches and why I couldn't login when using cfhttp?
 
 
 
  Any help is appreciated.
 
 
 
  Michael
 
 
 
 

 

~|
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:258977
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Claude Schneegans
 yes it can.

CF can send cookie to a client, and store its value in a variable, but 
the question here
is to emulate a client browser, then the CF application should send back 
the cookie value
set by the other server somewhere in the HTTP headers with all 
consecutive requests,
just like a browser would do.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:258978
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Claude Schneegans
 

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:258979
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Claude Schneegans
 If the chhttp as this guy is trying to connect to is login.asp, they says
to me it is the login form

I don't see your point. He is not CFHTTPing the form. He is sending 
the form to the action
template. What's your problem?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:258981
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Claude Schneegans
 he needs to be pointing to the page that the login.asp page sends 
that informartion too.

Well, I was assuming this is what he was doing.
You mean login.asp actually contains the form?
The actual address he is trying to log wouls help.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
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:258982
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Using CFHTTP to login

2006-11-03 Thread Andrew Scott
your joking right.

The form page is called login.asp.. And the cfhttp call is to login.asp.


You really aren't on top of the question.




On 11/3/06, Claude Schneegans [EMAIL PROTECTED] wrote:

 If the chhttp as this guy is trying to connect to is login.asp, they
 says
 to me it is the login form

 I don't see your point. He is not CFHTTPing the form. He is sending
 the form to the action
 template. What's your problem?

 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.


 

~|
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:258983
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to login

2006-11-03 Thread Andrew Scott
Your Joking really tell me you are joking?


the dude posted the form in his orignal post.

That confirms my suspicion, Bin Laden has infected the USA water suppy
making them all idiots at the moment *LOL*

No serious did you not see that in his original post?



On 11/3/06, Claude Schneegans [EMAIL PROTECTED] wrote:

 he needs to be pointing to the page that the login.asp page sends
 that informartion too.

 Well, I was assuming this is what he was doing.
 You mean login.asp actually contains the form?
 The actual address he is trying to log wouls help.

 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.


 

~|
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:258984
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Using CFHTTP to login

2006-11-03 Thread Andrew Tyrone
 -Original Message-
 From: Andrew Scott [mailto:[EMAIL PROTECTED] 
 Sent: Friday, November 03, 2006 7:02 AM
 To: CF-Talk
 Subject: Re: Using CFHTTP to login
 
 Claude I am in a funny mood, and your as stupid as Michael.
 
 
 If the chhttp as this guy is trying to connerct to is 
 login.asp, they says
 to me it is the login form:-)
 
 Gee some people are really stupid today...

No, you are wrong, Claude is correct, and I think there is only one stupid
person here, to quote him directly.  Did you ever thing Michael might be
posting to the same page that the form is on?  Did you really look at the
code to see that both form actions were the same (the form code itself and
the cfhttp)?  No, I guess not.

There is simply not enough information as Michael doesn't tell us what he is
trying to accomplish after the login or how it fails to begin with.  Ben
had the correct question to determine the next steps.

Andy



~|
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:258985
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Using CFHTTP to login

2006-11-03 Thread Andrew Scott
Actually there is enough information.

I have posted to the same page using cfhttp many and I repeat many times.

The difference is I do not send the submit button to do it, I send the
action that will define me to send the login information, otherwise Ithe
form will get displayed again.

So I will satnd up and say it again...

= Quote 
Michael, your problem lies with the fact you are connecting to the form
page. That is not what you need to do. What you nned to do is connect to the
processing page that the form is connecting to, and using cfhttp the way you
are pass the username and password but not the submit button.
= Quote End 


Sop if this dude has form action=login.asp?action=login then he needs to
do that. Of if he has input type=hidden name=action value=login then
he needs to send it.

The water is getting dirtier :-)







On 11/3/06, Andrew Tyrone [EMAIL PROTECTED] wrote:

  -Original Message-
  From: Andrew Scott [mailto:[EMAIL PROTECTED]
  Sent: Friday, November 03, 2006 7:02 AM
  To: CF-Talk
  Subject: Re: Using CFHTTP to login
 
  Claude I am in a funny mood, and your as stupid as Michael.
 
 
  If the chhttp as this guy is trying to connerct to is
  login.asp, they says
  to me it is the login form:-)
 
  Gee some people are really stupid today...

 No, you are wrong, Claude is correct, and I think there is only one stupid
 person here, to quote him directly.  Did you ever thing Michael might be
 posting to the same page that the form is on?  Did you really look at the
 code to see that both form actions were the same (the form code itself and
 the cfhttp)?  No, I guess not.

 There is simply not enough information as Michael doesn't tell us what he
 is
 trying to accomplish after the login or how it fails to begin with.  Ben
 had the correct question to determine the next steps.

 Andy



 

~|
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:258986
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Using CFHTTP to login

2006-11-03 Thread Rick Faircloth
Andrew...I think you're been dipping in that water, too...your
typing is almost incoherent...

What time is it in Australia...got to be happy hour...  :o)

Rick





-Original Message-
From: Andrew Scott [mailto:[EMAIL PROTECTED] 
Sent: Friday, November 03, 2006 7:19 AM
To: CF-Talk
Subject: Re: Using CFHTTP to login

Ben, is it correct.

The dude as a username and a password and god forbid a submit button as well
to a logn.asp page.

It is not correct, he needs to be pointing to the page that the
login.apspage sends that informartion too.

Yep something is in the water this week.


On 11/3/06, Ben Koshy [EMAIL PROTECTED] wrote:

 Your approach is correct...however After you use the CFHTTP client to
 login
 then what?   Its only the CFHTTP client that is logged in... not your
 local
 machine or server.  Dump your CFHTTP.FileContent... what do you
 see?  I'm
 not sure if there's a way to maintain a login using the CFHTTP client.

 - Original Message -
 From: Michael Nguyen [EMAIL PROTECTED]
 To: CF-Talk cf-talk@houseoffusion.com
 Sent: Friday, November 03, 2006 10:37 AM
 Subject: Using CFHTTP to login


  Hi everyone,
 
 
 
  I am still struggling with using cfhttp to log in into an ASP.NET app.
 
 
 
  The weird thing is when I used the normal html form (see bellow) then I
  could log in successfully:
 
 
 
  form method=post action=http://www.mycompany.com/Login.aspx;
  name=form1
 
   input name=CompanyCode type=hidden maxlength=12 value= ccode
 /
 
   input name=UserEmail type=hidden maxlength=60 value=
  [EMAIL PROTECTED]  /
 
   input  name=UserPassword type=password maxlength=50 value=
  password/
 
   input type=submit name=SigninBtn value=Login /
 
  /form
 
 
 
  However, when I use cfhttp (bellow) to login then I could not log in:
 
 
 
  cfhttp url=http://www.mycompany.com/Login.aspx; method=post
  resolveurl=yes port=80
 
  redirect=yes
 
  useragent=Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
 1.8.0.7)
  Gecko/20060909 Firefox/1.5.0.7
 
   cfhttpparam type=formfield name=CompanyCode
 value=ccode/
 
   cfhttpparam type=formfield name=UserEmail
  value=[EMAIL PROTECTED]/
 
   cfhttpparam type=formfield  name=UserPassword
  value=password/
 
   cfhttpparam type=formfield  name=SigninBtn value=Login/
 
  /cfhttp
 
 
 
  Can anyone tell me how differently the asp.Net treats to these above two
  approaches and why I couldn't login when using cfhttp?
 
 
 
  Any help is appreciated.
 
 
 
  Michael
 
 
 
 

 



~|
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:258988
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


  1   2   3   >