Re: cfhttp and Google Search Appliance

2008-09-09 Thread Steve Nelson
Kevin I was trying this exact same thing last week and got the exact same error.

I just tried your code and am still unable to login. Can you explain what it is 
you did to make it work?

Steve Nelson

 Dave, thanks for your help but I finally got it to work.  Just in case 
 you are interested:
 
 !-
 !--- Expects URL.command   ---
 !---   Export_Config   ---
 !---   Import_Config Filename  ---
 !---   Add_Collection CollectionID CollectionName? ---
 !---   Delete_Collection CollectionID  ---
 
 !--- Function to check HTTP response for errors and print debug ---
 cffunction name=checkHttpStruct returnType=boolean
 
 cfargument name=httpStruct type=Struct required=yes
 
 cfargument name=stage type=String required=yes
 
 
 cfif LEN(httpStruct.errorDetail) GT 0
  
 cfdump var=#httpStruct.errorDetail# label=#stage# ErrorBR
  
 cfreturn true
 
 /cfif
 
 cfdump var=#httpStruct# label=#stage# ResponseBR
 
 cfreturn false
 /cffunction
 
 
 !--- Initialize ---
 cfset Variables.error = False
 cfset Variables.googleWelcome = Google Mini gt; Home
 cfset Variables.adminUser = admin
 cfset Variables.adminPwd = blahblah !--- TBD HARDCODE get 
 from db ---
 cfset Variables.googleIP = 192.168.0.20 !--- TBD HARDCODE 
 Application.cfm ---
 
 !--- Set the URL for the google admin console ---
 cfset Variables.url = http://#Variables.
 googleIP#:8000/EnterpriseController
 
 !--- Send initial request to google.  This is just to get a response 
 ---
 cfhttp method=GET url=#Variables.url# useragent=#CGI.
 HTTP_USER_AGENT#/cfhttp
 cfset Variables.error = checkHttpStruct(CFHTTP, Initial Request)
 
 cfif NOT Variables.error
 
 !--- Get the cookie from the response object. This is the cookie that 
 ---
 
 !--- we are going to echo back in subsequent CFHttp requests. 
 ---
 
 !--- The google cookie will look like:  S=enterprise=;
 ---
 
 !---  where  is a unique key  
 ---
 
 cfset Variables.googleCookie = 
   
 ListGetAt(CFHTTP.Response.ResponseHeader[Set-Cookie],1,;)
 
 
 !--- Try to login ---
 
 cfhttp method=POST url=#Variables.url# useragent=#CGI.
 HTTP_USER_AGENT#
  
 cfhttpparam name=#Variables.googleCookie# type=COOKIE 
 value=#Variables.googleCookie#
  
 cfhttpparam name=actionType type=URL
 value=authenticateUser
  
 cfhttpparam name=userName   type=URLvalue=#Variables.
 adminUser#
  
 cfhttpparam name=password   type=URLvalue=#Variables.
 adminPwd#
 
 /cfhttp
 
 cfset Variables.error = checkHttpStruct(CFHTTP, Login Request)
 /cfif
 
 cfif NOT Variables.error
 
 !--- Check if we have a successful login by looking for the google 
 welcome on the admin main page ---
 
 cfif FindNoCase(#Variables.googleWelcome#, CFHTTP.Filecontent) EQ 
 0
  
 cfoutputLogin Failed/cfoutputBR
  
 cfset Variables.error = True
 
 /cfif
 /cfif
 
 cfif NOT Variables.error
 
 cfoutputLogin Success/cfoutputBR
 
 cfif URL.command EQ Export_Config
  
 !--- Export Config ---
  
 cfhttp  method=POST url=#Variables.url# useragent=#CGI.
 HTTP_USER_AGENT#
   
 cfhttpparam name=#Variables.googleCookie# type=COOKIE 
 value=#Variables.googleCookie#
   
 cfhttpparam name=actionType type=URLvalue=importExport
   
 cfhttpparam name=export type=URLvalue=Export 
 Configuration
   
 cfhttpparam name=password1  type=URLvalue=#Variables.
 adminPwd#
   
 cfhttpparam name=password2  type=URLvalue=#Variables.
 adminPwd#
  
 /cfhttp
 
 !--- TBD
 
 cfelseif URL.command EQ Import_Config
 
 cfelseif URL.command EQ Add_Collection
 
 cfelseif URL.command EQ Delete_Collection
 
 cfelse
 
 TBD ---
 
 /cfif
 
 cfset Variables.error = checkHttpStruct(CFHTTP, #URL.command#)
 
 
 !--- Log out ---
 
 cfhttp method=POST url=#Variables.url# useragent=#CGI.
 HTTP_USER_AGENT#
  
 cfhttpparam name=#Variables.googleCookie# type=COOKIE 
 value=#Variables.googleCookie#
  
 cfhttpparam name=actionType   type=URL
 value=logout
 
 /cfhttp
 
 cfset Variables.error = checkHttpStruct(CFHTTP, Logout Request)
 /cfif 


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


Re: cfhttp and Google Search Appliance

2008-09-09 Thread Steve Nelson
Oh my bad, your example was searching for the word Google Mini which isn't
on the full appliance. Thanks Kevin you've cured my ulcer.

Steve


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


Re: cfhttp and Google Search Appliance

2008-08-28 Thread Kevin Stone
Dave, thanks for your help but I finally got it to work.  Just in case you are 
interested:

!-
!--- Expects URL.command   ---
!---   Export_Config   ---
!---   Import_Config Filename  ---
!---   Add_Collection CollectionID CollectionName? ---
!---   Delete_Collection CollectionID  ---

!--- Function to check HTTP response for errors and print debug ---
cffunction name=checkHttpStruct returnType=boolean
 cfargument name=httpStruct type=Struct required=yes
 cfargument name=stage type=String required=yes

 cfif LEN(httpStruct.errorDetail) GT 0
  cfdump var=#httpStruct.errorDetail# label=#stage# ErrorBR
  cfreturn true
 /cfif
 cfdump var=#httpStruct# label=#stage# ResponseBR
 cfreturn false
/cffunction


!--- Initialize ---
cfset Variables.error = False
cfset Variables.googleWelcome = Google Mini gt; Home
cfset Variables.adminUser = admin
cfset Variables.adminPwd = blahblah !--- TBD HARDCODE get from db ---
cfset Variables.googleIP = 192.168.0.20 !--- TBD HARDCODE Application.cfm 
---

!--- Set the URL for the google admin console ---
cfset Variables.url = http://#Variables.googleIP#:8000/EnterpriseController;

!--- Send initial request to google.  This is just to get a response ---
cfhttp method=GET url=#Variables.url# 
useragent=#CGI.HTTP_USER_AGENT#/cfhttp
cfset Variables.error = checkHttpStruct(CFHTTP, Initial Request)

cfif NOT Variables.error
 !--- Get the cookie from the response object. This is the cookie that ---
 !--- we are going to echo back in subsequent CFHttp requests. ---
 !--- The google cookie will look like:  S=enterprise=;---
 !---  where  is a unique key  ---
 cfset Variables.googleCookie = 
   ListGetAt(CFHTTP.Response.ResponseHeader[Set-Cookie],1,;)

 !--- Try to login ---
 cfhttp method=POST url=#Variables.url# useragent=#CGI.HTTP_USER_AGENT#
  cfhttpparam name=#Variables.googleCookie# type=COOKIE 
value=#Variables.googleCookie#
  cfhttpparam name=actionType type=URLvalue=authenticateUser
  cfhttpparam name=userName   type=URLvalue=#Variables.adminUser#
  cfhttpparam name=password   type=URLvalue=#Variables.adminPwd#
 /cfhttp
 cfset Variables.error = checkHttpStruct(CFHTTP, Login Request)
/cfif

cfif NOT Variables.error
 !--- Check if we have a successful login by looking for the google welcome on 
the admin main page ---
 cfif FindNoCase(#Variables.googleWelcome#, CFHTTP.Filecontent) EQ 0
  cfoutputLogin Failed/cfoutputBR
  cfset Variables.error = True
 /cfif
/cfif

cfif NOT Variables.error
 cfoutputLogin Success/cfoutputBR
 cfif URL.command EQ Export_Config
  !--- Export Config ---
  cfhttp  method=POST url=#Variables.url# 
useragent=#CGI.HTTP_USER_AGENT#
   cfhttpparam name=#Variables.googleCookie# type=COOKIE 
value=#Variables.googleCookie#
   cfhttpparam name=actionType type=URLvalue=importExport
   cfhttpparam name=export type=URLvalue=Export Configuration
   cfhttpparam name=password1  type=URLvalue=#Variables.adminPwd#
   cfhttpparam name=password2  type=URLvalue=#Variables.adminPwd#
  /cfhttp
 !--- TBD
 cfelseif URL.command EQ Import_Config
 cfelseif URL.command EQ Add_Collection
 cfelseif URL.command EQ Delete_Collection
 cfelse
 TBD ---
 /cfif
 cfset Variables.error = checkHttpStruct(CFHTTP, #URL.command#)

 !--- Log out ---
 cfhttp method=POST url=#Variables.url# useragent=#CGI.HTTP_USER_AGENT#
  cfhttpparam name=#Variables.googleCookie# type=COOKIE 
value=#Variables.googleCookie#
  cfhttpparam name=actionType   type=URLvalue=logout
 /cfhttp
 cfset Variables.error = checkHttpStruct(CFHTTP, Logout Request)
/cfif 

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


RE: cfhttp and Google Search Appliance

2008-08-26 Thread Dave Watts
 Thanks for your help Dave.
 
 Yes, the URL is http://IP:8000/EnterpriseController
 
 I don't expect you to do my job for me, but I have included 
 my initial script below.  Does anything jump out as being 
 wrong?  My code is probably not the best since I am still 
 learning coldfusion.

I don't really see anything that jumps out at me. I'm out of the office
until Thursday, and don't have non-SSL access to a Google Search Appliance
right now, but will run it against one of our GSAs as soon as I can.

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;203748912;27390454;j

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


Re: cfhttp and Google Search Appliance

2008-08-25 Thread Kevin Stone
Thanks for your help Dave.

Yes, the URL is http://IP:8000/EnterpriseController

I don't expect you to do my job for me, but I have included my initial script 
below.  Does anything jump out as being wrong?  My code is probably not the 
best since I am still learning coldfusion.


!-
!--- Expects URL.command   ---
!---   Export_Config   ---
!---   Import_Config Filename  ---
!---   Add_Collection CollectionID CollectionName? ---
!---   Delete_Collection CollectionID  ---

!--- Function to check HTTP response for errors and print debug ---
cffunction name=checkHttpStruct returnType=boolean
  cfargument name=httpStruct type=Struct required=yes
  cfargument name=stage type=String required=yes

  cfif LEN(httpStruct.errorDetail) GT 0
cfdump var=#httpStruct.errorDetail# label=#stage# ErrorBR
cfreturn true
  /cfif
  cfdump var=#httpStruct# label=#stage# ResponseBR
  cfreturn false
/cffunction


!--- Initialize ---
cfset Variables.error = False
cfset Variables.googleWelcome = Google Mini  Home 
cfset Variables.adminUser = admin
cfset Variables.adminPwd = blahblah !--- TBD HARDCODE get from db ---
cfset Variables.googleIP = 192.168.0.22 !--- TBD HARDCODE Application.cfm 
---

!--- Set the URL for the google admin console ---
cfset Variables.url = http://#Variables.googleIP#:8000/EnterpriseController;

!--- Send initial request to google.  This is just to get a response ---
cfhttp method=GET url=#Variables.url# result=Variables.response/cfhttp
cfset Variables.error = checkHttpStruct(Variables.response, Initial Request)

cfif NOT Variables.error
  !--- Get the cookie from the response object. This is the cookie that  ---
  !--- we are going to echo back in subsequent CFHttp requests.  ---
  !--- The google cookie will look like:  S=enterprise=; PATH=/; ---
  !---  where  is a unique key   ---
  cfset Variables.googleCookie = 
Variables.response.ResponseHeader[Set-Cookie]

  !--- We dont care about the PATH so just get the first item from the cookie 
---
  !--- (take the string before the first semi-colon) ---
  cfset Variables.NameAndValue = ListGetAt(Variables.googleCookie,1,;)

  !--- The name is everything before the first equal sign (chr(61) ---
  !--- Will be S given the Cookie is S=enterprise= ---
  cfset Variables.cName = ListFirst(Variables.NameAndValue, chr(61))

  !--- The value is everything after the first equal sign  ---
  !--- Will be enterprise= given the Cookie is S=enterprise= 
---
  cfset Variables.cValue = ListRest(Variables.NameAndValue, chr(61))

  !--- Send a reload request to get past the initial screen ---
  !--- that tells you to enable cookies in your browser ---
  cfhttp method=POST url=#Variables.url# result=Variables.response
cfhttpparam name=actionTypetype=URLvalue=reload
cfhttpparam name=#Variables.cName# type=COOKIE 
value=#Variables.cValue#
  /cfhttp
  cfset Variables.error = checkHttpStruct(Variables.response, Reload 
Request)
/cfif

cfif NOT Variables.error
  !--- Try to login ---
  cfhttp method=POST url=#Variables.url# result=Variables.response
cfhttpparam name=actionType  type=URLvalue=authenticateUser
cfhttpparam name=userNametype=URL
value=#Variables.adminUser#
cfhttpparam name=passwordtype=URL
value=#Variables.adminPwd#
cfhttpparam name=#Variables.cName# type=COOKIE 
value=#Variables.cValue#
  /cfhttp
  cfset Variables.error = checkHttpStruct(Variables.response, Login Request)
/cfif

cfif NOT Variables.error
  !--- Check if we have a successful login by looking for the google welcome 
---
  cfif NOT FindNoCase(Variables.googleWelcome, Variables.response.header)
cfoutputLogin Failed/cfoutputBR
cfset Variables.error = True
  /cfif
/cfif

cfif NOT Variables.error
  cfoutputLogin Success/cfoutputBR

  cfif URL.command EQ Export_Config
!--- Export Config ---
cfhttp  method=POST url=#Variables.url# result=Variables.response
  cfhttpparam name=actionType type=URLvalue=importExport
  cfhttpparam name=export type=URLvalue=Export 
Configuration
  cfhttpparam name=password1  type=URL
value=#Variables.adminPwd#
  cfhttpparam name=password2  type=URL
value=#Variables.adminPwd#
  cfhttpparam name=#Variables.cName# type=COOKIE 
value=#Variables.cValue#
/cfhttp
  !--- TBD 
  cfelseif URL.command EQ Import_Config
  cfelseif URL.command EQ Add_Collection
  cfelseif URL.command EQ Delete_Collection
  cfelse
  TBD ---
  /cfif
  cfset Variables.error = checkHttpStruct(Variables.response, #URL.command#)

  !--- Log out ---
  cfhttp method=POST url=#Variables.url# result=Variables.response
cfhttpparam name=actionType type=URL value=logout
  /cfhttp
  cfset Variables.error = 

Re: cfhttp and Google Search Appliance

2008-08-24 Thread Kevin Stone
Hey Dave,

I have finished the first version of my CF script that will talk with the 
Google mini Admin console but I am having trouble.

Just briefly, I first cfhttp the google and I get a response with a cookie.  In 
the data it sends back I can see it is on the page that requests that you make 
sure that your browser is set to accept cookies.  I store the cookie for future 
use and then send a reload request (should transition the google to the login 
page) with the cookie stored in the cfhttp header.  But, when the google 
responds it sends a different cookie and there isn't anything that I can see in 
the response that indicates I am on the login page.  Is this what you would 
expect?  I had thought the google would respond with the original cookie since 
we are in a conversation.

thanks
-kevin


CF is just as good as any of these for this sort of thing, so if you prefer
using CF you should just go ahead. The examples in the GSA Google Group use
Python (as do most Google code examples), but they're not very extensive or
complete anyway.

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;203748912;27390454;j

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


RE: cfhttp and Google Search Appliance

2008-08-24 Thread Dave Watts
 I have finished the first version of my CF script that will 
 talk with the Google mini Admin console but I am having trouble.
 
 Just briefly, I first cfhttp the google and I get a response 
 with a cookie.  In the data it sends back I can see it is on 
 the page that requests that you make sure that your browser 
 is set to accept cookies.  I store the cookie for future use 
 and then send a reload request (should transition the 
 google to the login page) with the cookie stored in the 
 cfhttp header.  But, when the google responds it sends a 
 different cookie and there isn't anything that I can see in 
 the response that indicates I am on the login page.  Is this 
 what you would expect?  I had thought the google would 
 respond with the original cookie since we are in a conversation.

What's the initial URL you're requesting? I think it should be:
https://yourGSA:8443/EnterpriseController/
or
http://yourGSA:8000/EnterpriseController/

The fact that you're getting the message about requiring cookies makes me
think that you're going through one redirect after your initial request, and
aren't sending the cookie along. Presumably, at that point you might get a
different cookie.

A traffic sniffer or HTTP proxy is your friend here.

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;203748912;27390454;j

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


Re: cfhttp and Google Search Appliance

2008-08-21 Thread Kevin Stone
Thanks Dave,

You have given me hope.  At least I am on a path that is possible.  I have an 
example done with curl and make but they wont allow curl on our server.  
Perhaps I can mimic it with cfhttp.  Would you suggest any other approach, 
java, ...?

 -kevin


  Hey Dave Watts,
 
  Can you use cfhttp to add/delete/update 
  collection configuration in a Google mini? 
  For example when we add a new 
  collection on one of our systems can we 
  use cfhttp to update the other or do we
  need to do it manually thru the admin 
  console?
 
 Hey, Kevin!
 
 Yes, you can! However, it's a pain. You'll need to capture the cookie 
 from your initial request, then send admin credentials  in an HTTP 
 POST, then do the collection submission.
 
 Dave Watts, CTO, Fig Leaf Software 


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


RE: cfhttp and Google Search Appliance

2008-08-21 Thread Dave Watts
 You have given me hope.  At least I am on a path that is 
 possible.  I have an example done with curl and make but they 
 wont allow curl on our server.  Perhaps I can mimic it with 
 cfhttp.  Would you suggest any other approach, java, ...?

CF is just as good as any of these for this sort of thing, so if you prefer
using CF you should just go ahead. The examples in the GSA Google Group use
Python (as do most Google code examples), but they're not very extensive or
complete anyway.

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;203748912;27390454;j

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


Re: cfhttp and Google Search Appliance

2008-08-20 Thread Kevin Stone
Hey Dave Watts,

Can you use cfhttp to add/delete/update collection configuration in a Google 
mini?  For example when we add a new collection on one of our systems can we 
use cfhttp to update the other or do we need to do it manually thru the admin 
console? 

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


RE: cfhttp and Google Search Appliance

2008-08-20 Thread Dave Watts
 Hey Dave Watts,

 Can you use cfhttp to add/delete/update 
 collection configuration in a Google mini? 
 For example when we add a new 
 collection on one of our systems can we 
 use cfhttp to update the other or do we
 need to do it manually thru the admin 
 console?

Hey, Kevin!

Yes, you can! However, it's a pain. You'll need to capture the cookie from your 
initial request, then send admin credentials  in an HTTP POST, then do the 
collection submission.

Dave Watts, CTO, Fig Leaf Software 

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


Re: cfhttp and Google Search Appliance

2008-08-13 Thread Brent Nicholas
Are you searching secured or unsecured content? It's very easy if you are only 
searching unsecured. In some cases you need cfx_http5 if you are searching 
secured content.

You need to get the ip of the Google box and build a search string based on 
what you wnat to do.

You'll want to review the Google search appliance API to understand the url 
string.

Here are the url params you'll end up using, though some may not be needed for 
you. We return XML and deal with that prior to presentation.

cfparam name=G_q default=
cfparam name=G_site default=YourCollection
cfparam name=G_restrict default=
cfparam name=G_client default=default_frontend
cfparam name=G_output default=xml_no_dtd
cfparam name=G_as_occt default=any
cfparam name=G_filter default=0
cfparam name=G_access default=a
cfparam name=G_num default=10
cfparam name=G_start default=0


Does anybody know how to use CFHTTP to talk to the Google Search Appliance?

I can't find anything on the Web that mentions this.

I am not talking about CSE.

Thanks,
Jo-Anne 

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


RE: cfhttp and Google Search Appliance

2008-08-13 Thread Dave Watts
 Are you searching secured or unsecured content? It's very 
 easy if you are only searching unsecured. In some cases you 
 need cfx_http5 if you are searching secured content.

You don't need any third-party tools to search secured content, unless you
are using client certificates for authentication. CFHTTP works just fine
with web server authentication and forms-based authentication, although
you're responsible for issuing multiple requests, and reading and sending
cookies if required.

In addition, if you're presenting the results in CF, you can often dispense
with secure searches entirely, and validate security restrictions in your
application code.

 Here are the url params you'll end up using, though some may 
 not be needed for you. We return XML and deal with that prior 
 to presentation.
 
 cfparam name=G_q default=
 cfparam name=G_site default=YourCollection cfparam 
 name=G_restrict default= cfparam name=G_client 
 default=default_frontend cfparam name=G_output 
 default=xml_no_dtd cfparam name=G_as_occt 
 default=any cfparam name=G_filter default=0 cfparam 
 name=G_access default=a cfparam name=G_num 
 default=10 cfparam name=G_start default=0

The G_ prefix will not be understood by the search appliance.

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;203748912;27390454;j

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


cfhttp and Google Search Appliance

2008-08-12 Thread [EMAIL PROTECTED] [EMAIL PROTECTED]
Does anybody know how to use CFHTTP to talk to the Google Search Appliance?

I can't find anything on the Web that mentions this.

I am not talking about CSE.

Thanks,
Jo-Anne 

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


Re: cfhttp and Google Search Appliance

2008-08-12 Thread Scott Stewart
Joanne,

I've got a function that I wrote a couple of years ago that would talk 
to a google appliance.

http://www.sstwebworks.com/apps/parseGoogle.zip

It's old code but it might help you out.

sas

[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 Does anybody know how to use CFHTTP to talk to the Google Search Appliance?

 I can't find anything on the Web that mentions this.

 I am not talking about CSE.

 Thanks,
 Jo-Anne 

 

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


RE: cfhttp and Google Search Appliance

2008-08-12 Thread Dave Watts
 Does anybody know how to use CFHTTP to talk to the Google 
 Search Appliance?

Yes. There isn't much to it, frankly. Do you have any specific questions?
I'm a Google Enterprise certified instructor, so feel free to ask whatever
GSA questions you like.

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;203748912;27390454;j

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