RE: [KCFusion] CFHTTP hopeless with proxy?

2002-01-14 Thread Keith Purtell

I installed this item as described and ran the code. I'm enclosing the error
message because I'm not familiar with Java ...

Diagnostics: Unhandled System exception !  java.lang.ClassNotFoundException:
ClassFormatError for class  HTTPClient.HTTPConnection. Java exception
occurred in call to method. The error occurred while processing an element
with a general identifier of (CFOBJECT), occupying document position (90:1)
to (95:2).

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Friday, January 11, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


I once got a Java http client working from within CF.

Here's what I did to get it working:
1.  Download the HTTPClient class files (.zip) from
http://www.innovation.ch/java/HTTPClient/
2.  Extract to C:\jdk1.3\jre\lib\HTTPClient
3.  Add C:\jdk1.3\jre\lib\ as Class Path in CF Admin
4.  Run following CF code:

cfobject action = Create type = Java
class = HTTPClient.HTTPConnection name = httpConn
cfscript
httpConn.init(www.windsorcs.com);
response=httpConn.Get(/);
content=response.getText();
/cfscript
cfoutput
#content#
/cfoutput

Voila!

(I wonder why the method is called Get(), instead of get()...)


- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: KCFusion (E-mail) [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 9:31 AM
Subject: [KCFusion] CFHTTP hopeless with proxy?


Before I give up on CFHTTP, I'll offer this description of my problem and
hope for a solution. We run CF5 on NT4 SP6a. It's a private server hosting
our intranet. I built a simple template that would use CFHTTP to go out
through our proxy server and test one of our public sites to make sure it
was up and running. If not, it notifies me. Then I scheduled the template to
run once an hour in the CF Admin. The template works fine if I use my
browser to access it. However, called my the Scheduler, this template always
fails to get past the proxy server, and instead returns 407 Proxy
Authentication Required. I have established a user account on the proxy
server and made sure to use the same username and password as I put in the
tag. I have also checked the username/password used inside the Scheduler,
and the username/password used by CF. The process only fails when the
Scheduler tries to call the template, and CFHTTP tries to get past the
proxy. There are a number of related threads on this in the Allaire forums.
But the only solutions people have found were to either write their own CFX,
or purchase the $150 Mabry HTTP/X and a related $50 custom tag. I can't do
either right now. I approached someone in the forum who had written their
own solution, but they didn't want to send me a copy. Just as frustrating, I
can't find any record of these failures in the proxy log! This particular
template is not mission critical, but if I can't make CFHTTP get past the
proxy, then I can't use it elsewhere. Comments?

CFHTTP
URL=http://www.domain.com/index.html;
METHOD=GET
RESOLVEURL=No
PROXYSERVER=ip.address.here
PROXYPORT=8080
USERNAME=username
PASSWORD=password
THROWONERROR=No
TIMEOUT=120

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 



RE: [KCFusion] CFHTTP hopeless with proxy?

2002-01-14 Thread Keith Purtell

I unzipped as required, then went into CF Admin JVM and Java Settings and
used the Browse Server button next to Class Path to arrive at
C:\jdk1.3.1_01\jre\lib\HTTPClient, then I clicked the Submit Changes
button at the bottom of the page. I have also tried stopping and restarting
the CF service. Perhaps I need to add this as a system variable not just in
CF?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Monday, January 14, 2002 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


java.lang.ClassNotFoundException means that CF couldn't find the class
files...

One of two things have gone wrong:

1.  You didn't add the jre/lib path to the CFAdmin (make sure it's valid!)
2.  You didn't extract the .zip file into jre/lib/HTTPClient

Double-check these things.

--Daryl
- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 9:14 AM
Subject: RE: [KCFusion] CFHTTP hopeless with proxy?


I installed this item as described and ran the code. I'm enclosing the error
message because I'm not familiar with Java ...

Diagnostics: Unhandled System exception !  java.lang.ClassNotFoundException:
ClassFormatError for class  HTTPClient.HTTPConnection. Java exception
occurred in call to method. The error occurred while processing an element
with a general identifier of (CFOBJECT), occupying document position (90:1)
to (95:2).

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Friday, January 11, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


I once got a Java http client working from within CF.

Here's what I did to get it working:
1.  Download the HTTPClient class files (.zip) from
http://www.innovation.ch/java/HTTPClient/
2.  Extract to C:\jdk1.3\jre\lib\HTTPClient
3.  Add C:\jdk1.3\jre\lib\ as Class Path in CF Admin
4.  Run following CF code:

cfobject action = Create type = Java
class = HTTPClient.HTTPConnection name = httpConn
cfscript
httpConn.init(www.windsorcs.com);
response=httpConn.Get(/);
content=response.getText();
/cfscript
cfoutput
#content#
/cfoutput

Voila!

(I wonder why the method is called Get(), instead of get()...)


- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: KCFusion (E-mail) [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 9:31 AM
Subject: [KCFusion] CFHTTP hopeless with proxy?


Before I give up on CFHTTP, I'll offer this description of my problem and
hope for a solution. We run CF5 on NT4 SP6a. It's a private server hosting
our intranet. I built a simple template that would use CFHTTP to go out
through our proxy server and test one of our public sites to make sure it
was up and running. If not, it notifies me. Then I scheduled the template to
run once an hour in the CF Admin. The template works fine if I use my
browser to access it. However, called my the Scheduler, this template always
fails to get past the proxy server, and instead returns 407 Proxy
Authentication Required. I have established a user account on the proxy
server and made sure to use the same username and password as I put in the
tag. I have also checked the username/password used inside the Scheduler,
and the username/password used by CF. The process only fails when the
Scheduler tries to call the template, and CFHTTP tries to get past the
proxy. There are a number of related threads on this in the Allaire forums.
But the only solutions people have found were to either write their own CFX,
or purchase the $150 Mabry HTTP/X and a related $50 custom tag. I can't do
either right now. I approached someone in the forum who had written their
own solution, but they didn't want to send me a copy. Just as frustrating, I
can't find any record of these failures in the proxy log! This particular
template is not mission critical, but if I can't make CFHTTP get past the
proxy, then I can't use it elsewhere

Re: [KCFusion] CFHTTP hopeless with proxy?

2002-01-14 Thread Daryl Banttari

Drop HTTPClient from the end of the lib path.

When you specify
class=HTTPClient.HTTPClient
the part before the period becomes a directory.

--Daryl

- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 9:42 AM
Subject: RE: [KCFusion] CFHTTP hopeless with proxy?


I unzipped as required, then went into CF Admin JVM and Java Settings and
used the Browse Server button next to Class Path to arrive at
C:\jdk1.3.1_01\jre\lib\HTTPClient, then I clicked the Submit Changes
button at the bottom of the page. I have also tried stopping and restarting
the CF service. Perhaps I need to add this as a system variable not just in
CF?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Monday, January 14, 2002 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


java.lang.ClassNotFoundException means that CF couldn't find the class
files...

One of two things have gone wrong:

1.  You didn't add the jre/lib path to the CFAdmin (make sure it's valid!)
2.  You didn't extract the .zip file into jre/lib/HTTPClient

Double-check these things.

--Daryl
- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 9:14 AM
Subject: RE: [KCFusion] CFHTTP hopeless with proxy?


I installed this item as described and ran the code. I'm enclosing the error
message because I'm not familiar with Java ...

Diagnostics: Unhandled System exception !  java.lang.ClassNotFoundException:
ClassFormatError for class  HTTPClient.HTTPConnection. Java exception
occurred in call to method. The error occurred while processing an element
with a general identifier of (CFOBJECT), occupying document position (90:1)
to (95:2).

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Friday, January 11, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


I once got a Java http client working from within CF.

Here's what I did to get it working:
1.  Download the HTTPClient class files (.zip) from
http://www.innovation.ch/java/HTTPClient/
2.  Extract to C:\jdk1.3\jre\lib\HTTPClient
3.  Add C:\jdk1.3\jre\lib\ as Class Path in CF Admin
4.  Run following CF code:

cfobject action = Create type = Java
class = HTTPClient.HTTPConnection name = httpConn
cfscript
httpConn.init(www.windsorcs.com);
response=httpConn.Get(/);
content=response.getText();
/cfscript
cfoutput
#content#
/cfoutput

Voila!

(I wonder why the method is called Get(), instead of get()...)


- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: KCFusion (E-mail) [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 9:31 AM
Subject: [KCFusion] CFHTTP hopeless with proxy?


Before I give up on CFHTTP, I'll offer this description of my problem and
hope for a solution. We run CF5 on NT4 SP6a. It's a private server hosting
our intranet. I built a simple template that would use CFHTTP to go out
through our proxy server and test one of our public sites to make sure it
was up and running. If not, it notifies me. Then I scheduled the template to
run once an hour in the CF Admin. The template works fine if I use my
browser to access it. However, called my the Scheduler, this template always
fails to get past the proxy server, and instead returns 407 Proxy
Authentication Required. I have established a user account on the proxy
server and made sure to use the same username and password as I put in the
tag. I have also checked the username/password used inside the Scheduler,
and the username/password used by CF. The process only fails when the
Scheduler tries to call the template, and CFHTTP tries to get past the
proxy. There are a number of related threads on this in the Allaire forums.
But the only solutions people have found were to either write their own CFX,
or purchase the $150 Mabry HTTP/X and a related $50 custom tag. I can't do
either

RE: [KCFusion] CFHTTP hopeless with proxy?

2002-01-14 Thread Keith Purtell

Well that didn't do it, so I went ahead and added the class path at the
system level. Now the CFOBJECT runs without error. But instead of returning
the external Web page that is called in the contents, I get our generic
firewall message for people whose browsers are not properly configured. It's
not getting past our proxy. Is there some way to pass a username and
password in CFSCRIPT?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Monday, January 14, 2002 9:48 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


Drop HTTPClient from the end of the lib path.

When you specify
class=HTTPClient.HTTPClient
the part before the period becomes a directory.

--Daryl

- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 9:42 AM
Subject: RE: [KCFusion] CFHTTP hopeless with proxy?


I unzipped as required, then went into CF Admin JVM and Java Settings and
used the Browse Server button next to Class Path to arrive at
C:\jdk1.3.1_01\jre\lib\HTTPClient, then I clicked the Submit Changes
button at the bottom of the page. I have also tried stopping and restarting
the CF service. Perhaps I need to add this as a system variable not just in
CF?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Monday, January 14, 2002 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


java.lang.ClassNotFoundException means that CF couldn't find the class
files...

One of two things have gone wrong:

1.  You didn't add the jre/lib path to the CFAdmin (make sure it's valid!)
2.  You didn't extract the .zip file into jre/lib/HTTPClient

Double-check these things.

--Daryl
- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 9:14 AM
Subject: RE: [KCFusion] CFHTTP hopeless with proxy?


I installed this item as described and ran the code. I'm enclosing the error
message because I'm not familiar with Java ...

Diagnostics: Unhandled System exception !  java.lang.ClassNotFoundException:
ClassFormatError for class  HTTPClient.HTTPConnection. Java exception
occurred in call to method. The error occurred while processing an element
with a general identifier of (CFOBJECT), occupying document position (90:1)
to (95:2).

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Friday, January 11, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


I once got a Java http client working from within CF.

Here's what I did to get it working:
1.  Download the HTTPClient class files (.zip) from
http://www.innovation.ch/java/HTTPClient/
2.  Extract to C:\jdk1.3\jre\lib\HTTPClient
3.  Add C:\jdk1.3\jre\lib\ as Class Path in CF Admin
4.  Run following CF code:

cfobject action = Create type = Java
class = HTTPClient.HTTPConnection name = httpConn
cfscript
httpConn.init(www.windsorcs.com);
response=httpConn.Get(/);
content=response.getText();
/cfscript
cfoutput
#content#
/cfoutput

Voila!

(I wonder why the method is called Get(), instead of get()...)


- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: KCFusion (E-mail) [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 9:31 AM
Subject: [KCFusion] CFHTTP hopeless with proxy?


Before I give up on CFHTTP, I'll offer this description of my problem and
hope

Re: [KCFusion] CFHTTP hopeless with proxy?

2002-01-14 Thread Daryl Banttari

The full docs are at
http://www.innovation.ch/java/HTTPClient/api/HTTPClient/HTTPConnection.html

Look into the setProxyServer() and addBasicAuthorization methods...

--Daryl

- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 10:12 AM
Subject: RE: [KCFusion] CFHTTP hopeless with proxy?


Well that didn't do it, so I went ahead and added the class path at the
system level. Now the CFOBJECT runs without error. But instead of returning
the external Web page that is called in the contents, I get our generic
firewall message for people whose browsers are not properly configured. It's
not getting past our proxy. Is there some way to pass a username and
password in CFSCRIPT?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Monday, January 14, 2002 9:48 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


Drop HTTPClient from the end of the lib path.

When you specify
class=HTTPClient.HTTPClient
the part before the period becomes a directory.

--Daryl

- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 9:42 AM
Subject: RE: [KCFusion] CFHTTP hopeless with proxy?


I unzipped as required, then went into CF Admin JVM and Java Settings and
used the Browse Server button next to Class Path to arrive at
C:\jdk1.3.1_01\jre\lib\HTTPClient, then I clicked the Submit Changes
button at the bottom of the page. I have also tried stopping and restarting
the CF service. Perhaps I need to add this as a system variable not just in
CF?

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Monday, January 14, 2002 9:30 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


java.lang.ClassNotFoundException means that CF couldn't find the class
files...

One of two things have gone wrong:

1.  You didn't add the jre/lib path to the CFAdmin (make sure it's valid!)
2.  You didn't extract the .zip file into jre/lib/HTTPClient

Double-check these things.

--Daryl
- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 9:14 AM
Subject: RE: [KCFusion] CFHTTP hopeless with proxy?


I installed this item as described and ran the code. I'm enclosing the error
message because I'm not familiar with Java ...

Diagnostics: Unhandled System exception !  java.lang.ClassNotFoundException:
ClassFormatError for class  HTTPClient.HTTPConnection. Java exception
occurred in call to method. The error occurred while processing an element
with a general identifier of (CFOBJECT), occupying document position (90:1)
to (95:2).

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Friday, January 11, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


I once got a Java http client working from within CF.

Here's what I did to get it working:
1.  Download the HTTPClient class files (.zip) from
http://www.innovation.ch/java/HTTPClient/
2.  Extract to C:\jdk1.3\jre\lib\HTTPClient
3.  Add C:\jdk1.3\jre\lib\ as Class Path in CF Admin
4.  Run following CF code:

cfobject action = Create type = Java
class = HTTPClient.HTTPConnection name = httpConn
cfscript
httpConn.init(www.windsorcs.com);
response=httpConn.Get(/);
content=response.getText();
/cfscript
cfoutput
#content#
/cfoutput

Re: [KCFusion] CFHTTP hopeless with proxy?

2002-01-14 Thread Girish_Kshirsagar


Keith,

Is this a http connection or https?  If https then you may need addtional
steps - such as security policy set up etc.

In general, firewall issues can be complex - in some cases you must work
with the ISP, and they are typically reluctant to divulge any information
that may breach security.

If you can divulge the URL, I may be able to do some remote tests myself.

Girish

 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 



RE: [KCFusion] CFHTTP hopeless with proxy?

2002-01-14 Thread Keith Purtell

It's an HTTP connection, and I'm the administering the firewall, so I've got
a lot of control. I've done more testing using
HTTPConnection.setProxyServer, as recommended in the docs. But CF server
doesn't like that, and tells me it can't determine the value of the
parameter. A little bizarre, since it correctly processed the CFOBJECT and
then went on to correctly process the httpConn.init insided CFSCRIPT. Like I
said, I know nothing about Java, so it's likely I'm making a basic mistake.

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]
Voice: (816) 801-5200
Fax:   (816) 880-4776
   (800) 525-1101

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, January 14, 2002 2:07 PM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?



Keith,

Is this a http connection or https?  If https then you may need addtional
steps - such as security policy set up etc.

In general, firewall issues can be complex - in some cases you must work
with the ISP, and they are typically reluctant to divulge any information
that may breach security.

If you can divulge the URL, I may be able to do some remote tests myself.

Girish



 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 



[KCFusion] CFHTTP hopeless with proxy?

2002-01-11 Thread Keith Purtell

Before I give up on CFHTTP, I'll offer this description of my problem and
hope for a solution. We run CF5 on NT4 SP6a. It's a private server hosting
our intranet. I built a simple template that would use CFHTTP to go out
through our proxy server and test one of our public sites to make sure it
was up and running. If not, it notifies me. Then I scheduled the template to
run once an hour in the CF Admin. The template works fine if I use my
browser to access it. However, called my the Scheduler, this template always
fails to get past the proxy server, and instead returns 407 Proxy
Authentication Required. I have established a user account on the proxy
server and made sure to use the same username and password as I put in the
tag. I have also checked the username/password used inside the Scheduler,
and the username/password used by CF. The process only fails when the
Scheduler tries to call the template, and CFHTTP tries to get past the
proxy. There are a number of related threads on this in the Allaire forums.
But the only solutions people have found were to either write their own CFX,
or purchase the $150 Mabry HTTP/X and a related $50 custom tag. I can't do
either right now. I approached someone in the forum who had written their
own solution, but they didn't want to send me a copy. Just as frustrating, I
can't find any record of these failures in the proxy log! This particular
template is not mission critical, but if I can't make CFHTTP get past the
proxy, then I can't use it elsewhere. Comments?

CFHTTP
URL=http://www.domain.com/index.html;
METHOD=GET
RESOLVEURL=No
PROXYSERVER=ip.address.here
PROXYPORT=8080
USERNAME=username
PASSWORD=password
THROWONERROR=No
TIMEOUT=120

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.

 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 



Re: [KCFusion] CFHTTP hopeless with proxy?

2002-01-11 Thread Daryl Banttari

I once got a Java http client working from within CF.

Here's what I did to get it working:
1.  Download the HTTPClient class files (.zip) from
http://www.innovation.ch/java/HTTPClient/
2.  Extract to C:\jdk1.3\jre\lib\HTTPClient
3.  Add C:\jdk1.3\jre\lib\ as Class Path in CF Admin
4.  Run following CF code:

cfobject action = Create type = Java
class = HTTPClient.HTTPConnection name = httpConn
cfscript
httpConn.init(www.windsorcs.com);
response=httpConn.Get(/);
content=response.getText();
/cfscript
cfoutput
#content#
/cfoutput

Voila!

(I wonder why the method is called Get(), instead of get()...)


- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: KCFusion (E-mail) [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 9:31 AM
Subject: [KCFusion] CFHTTP hopeless with proxy?


Before I give up on CFHTTP, I'll offer this description of my problem and
hope for a solution. We run CF5 on NT4 SP6a. It's a private server hosting
our intranet. I built a simple template that would use CFHTTP to go out
through our proxy server and test one of our public sites to make sure it
was up and running. If not, it notifies me. Then I scheduled the template to
run once an hour in the CF Admin. The template works fine if I use my
browser to access it. However, called my the Scheduler, this template always
fails to get past the proxy server, and instead returns 407 Proxy
Authentication Required. I have established a user account on the proxy
server and made sure to use the same username and password as I put in the
tag. I have also checked the username/password used inside the Scheduler,
and the username/password used by CF. The process only fails when the
Scheduler tries to call the template, and CFHTTP tries to get past the
proxy. There are a number of related threads on this in the Allaire forums.
But the only solutions people have found were to either write their own CFX,
or purchase the $150 Mabry HTTP/X and a related $50 custom tag. I can't do
either right now. I approached someone in the forum who had written their
own solution, but they didn't want to send me a copy. Just as frustrating, I
can't find any record of these failures in the proxy log! This particular
template is not mission critical, but if I can't make CFHTTP get past the
proxy, then I can't use it elsewhere. Comments?

CFHTTP
URL=http://www.domain.com/index.html;
METHOD=GET
RESOLVEURL=No
PROXYSERVER=ip.address.here
PROXYPORT=8080
USERNAME=username
PASSWORD=password
THROWONERROR=No
TIMEOUT=120

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.



__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]



 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]
 



RE: [KCFusion] CFHTTP hopeless with proxy?

2002-01-11 Thread Keith Purtell

I'll check that out, and let you know. Thanks!

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Daryl Banttari
Sent: Friday, January 11, 2002 10:28 AM
To: [EMAIL PROTECTED]
Subject: Re: [KCFusion] CFHTTP hopeless with proxy?


I once got a Java http client working from within CF.

Here's what I did to get it working:
1.  Download the HTTPClient class files (.zip) from
http://www.innovation.ch/java/HTTPClient/
2.  Extract to C:\jdk1.3\jre\lib\HTTPClient
3.  Add C:\jdk1.3\jre\lib\ as Class Path in CF Admin
4.  Run following CF code:

cfobject action = Create type = Java
class = HTTPClient.HTTPConnection name = httpConn
cfscript
httpConn.init(www.windsorcs.com);
response=httpConn.Get(/);
content=response.getText();
/cfscript
cfoutput
#content#
/cfoutput

Voila!

(I wonder why the method is called Get(), instead of get()...)


- Original Message -
From: Keith Purtell [EMAIL PROTECTED]
To: KCFusion (E-mail) [EMAIL PROTECTED]
Sent: Friday, January 11, 2002 9:31 AM
Subject: [KCFusion] CFHTTP hopeless with proxy?


Before I give up on CFHTTP, I'll offer this description of my problem and
hope for a solution. We run CF5 on NT4 SP6a. It's a private server hosting
our intranet. I built a simple template that would use CFHTTP to go out
through our proxy server and test one of our public sites to make sure it
was up and running. If not, it notifies me. Then I scheduled the template to
run once an hour in the CF Admin. The template works fine if I use my
browser to access it. However, called my the Scheduler, this template always
fails to get past the proxy server, and instead returns 407 Proxy
Authentication Required. I have established a user account on the proxy
server and made sure to use the same username and password as I put in the
tag. I have also checked the username/password used inside the Scheduler,
and the username/password used by CF. The process only fails when the
Scheduler tries to call the template, and CFHTTP tries to get past the
proxy. There are a number of related threads on this in the Allaire forums.
But the only solutions people have found were to either write their own CFX,
or purchase the $150 Mabry HTTP/X and a related $50 custom tag. I can't do
either right now. I approached someone in the forum who had written their
own solution, but they didn't want to send me a copy. Just as frustrating, I
can't find any record of these failures in the proxy log! This particular
template is not mission critical, but if I can't make CFHTTP get past the
proxy, then I can't use it elsewhere. Comments?

CFHTTP
URL=http://www.domain.com/index.html;
METHOD=GET
RESOLVEURL=No
PROXYSERVER=ip.address.here
PROXYPORT=8080
USERNAME=username
PASSWORD=password
THROWONERROR=No
TIMEOUT=120

Keith Purtell, Web/Network Administrator
VantageMed Operations (Kansas City)
Email:  [EMAIL PROTECTED]

CONFIDENTIALITY NOTICE: This email message, including any attachments, is
for the sole use of the intended recipient(s) and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply email and destroy all copies of the original
message.



__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]





__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]



 
 
__
The KCFusion.org list and website is hosted by Humankind Systems, Inc.
List Archives http://www.mail-archive.com/cf-list@kcfusion.org
Questions, Comments or Glowing Praise.. mailto:[EMAIL PROTECTED]
To Subscribe mailto:[EMAIL PROTECTED]
To Unsubscribe mailto:[EMAIL PROTECTED]