Re: XMLRPC Request with CFHTTP
Hi John, Thanks for the quick response. I don't believe this is helpful. I have the correct XML to send and it has been confirmed. The issue is with the web service interpreting my request and processing the XML. I believe the issue is in the header that CFHTTP creates. Donnie Carvajal >Helpful...? http://www.houseoffusion.com/groups/xml/thread.cfm/threadid:108 > >On Tue, Oct 14, 2014 at 4:08 PM, Donnie Carvajal < >donnie.carva...@transformyx.com> wrote: > >> ~| 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:359472 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: XMLRPC Request with CFHTTP
Helpful...? http://www.houseoffusion.com/groups/xml/thread.cfm/threadid:108 On Tue, Oct 14, 2014 at 4:08 PM, Donnie Carvajal < donnie.carva...@transformyx.com> wrote: > > I'm having an issue with a XMLRPC webservice using CFHTTP. I am getting > text/html responses instead of xml. A successful non-CFHTTP request's raw > header are sends as "POST /XMLRPC HTTP/1.0". The CFHTTP request's header > sends as "POST / HTTP/1.1". I believe the issue is the missing "/XMLRPC". > Does anyone know how to get CFHTTP to include this in the POST request? > > Thanks, > > Donnie Carvajal > > ~| 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:359471 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
XMLRPC Request with CFHTTP
I'm having an issue with a XMLRPC webservice using CFHTTP. I am getting text/html responses instead of xml. A successful non-CFHTTP request's raw header are sends as "POST /XMLRPC HTTP/1.0". The CFHTTP request's header sends as "POST / HTTP/1.1". I believe the issue is the missing "/XMLRPC". Does anyone know how to get CFHTTP to include this in the POST request? Thanks, Donnie Carvajal ~| 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:359470 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFHTTP Raw Request
CF has to be running on your local machine to see it. If you are doing it on a development server then you have to install fiddler on the dev server and run the browser from there. Steve -Original Message- From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] Sent: Tuesday, October 14, 2014 12:53 PM To: cf-talk Subject: Re: CFHTTP Raw Request I think I may be confused. I need to see the raw headers that CFHTTP is creating. I installed Fiddler on the development and ran it. When I call the CF page that includes the CFHTTP, I am not seeing any new requests in Fiddler. I'm not sure how a browser would show me CFHTTP headers that are created. Am I missing something? Thanks, Donnie Carvajal > It's just a program that when run will sit between the browser and the > world outside the computer (internet, intranet, etc). It displays > what is going in and out. > > It's an easy install and adds piece to IE/Chrome/Firefox as well as > installing the App. You just run it and use your web browser. If you > are working with HTTPS/SSL/TLS then there is a way to set it up to > track that data as well (Technically a man in the middle, but you are > doing it to yourself so it's ok). > > Steve > -Original Message- > From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] > Sent: Tuesday, October 14, 2014 11:21 AM > To: cf-talk > Subject: Re: CFHTTP Raw Request > > > Hi Steve, > > Thanks for the suggestion. I've never used Fiddler before. Are there > any special configurations to watch a cfhttp request? > > Thanks, > > Donnie Carvajal ~| 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:359469 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFHTTP Raw Request
Ah... so you would have to use the proxy/port attributes of the cfhttp tag. I see how that would work. On the plugin install it sets that up for you with the browser. Good to know. -Original Message- From: Dave Watts [mailto:dwa...@figleaf.com] Sent: Tuesday, October 14, 2014 12:11 PM To: cf-talk Subject: Re: CFHTTP Raw Request > you will need a sniffer on the server to see any HTTP request from CF. If > you are doing local development (where cf is installed on your laptop or > desktop) then that's where your proxy/sniffer needs to live. CFHTTP is > technically not a "browser" request - just a straight HTTP request using > tcp. I use wireshark for this - fiddler is more of a browser plugin - or at > least, it proxys it's data to a browser. I suspect it "could" work for > cfhttp request -just not positive as I've never tried it. Steve's suggestion > is a good one and fiddler (or Charles) is a great addition to your toolkit > but it may not work in this specific instance. Sorry to redirect your > efforts :) Fiddler is more than a browser plugin. It's a proxy server, and can in fact capture all outbound HTTP requests from your machine, regardless of what they come from. I prefer Fiddler to Wireshark for this because it's purely focused on HTTP/HTTPS and a lot easier to read. However, you have to configure clients to use it as a proxy. With CF, you can do this at the JVM level, or you can change your CFHTTP code to use a specific proxy server. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business (SDVOSB) on GSA Schedule, and provides the highest caliber vendor- authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359468 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Raw Request
> you will need a sniffer on the server to see any HTTP request from CF. If > you are doing local development (where cf is installed on your laptop or > desktop) then that's where your proxy/sniffer needs to live. CFHTTP is > technically not a "browser" request - just a straight HTTP request using > tcp. I use wireshark for this - fiddler is more of a browser plugin - or at > least, it proxys it's data to a browser. I suspect it "could" work for > cfhttp request -just not positive as I've never tried it. Steve's suggestion > is a good one and fiddler (or Charles) is a great addition to your toolkit > but it may not work in this specific instance. Sorry to redirect your > efforts :) Fiddler is more than a browser plugin. It's a proxy server, and can in fact capture all outbound HTTP requests from your machine, regardless of what they come from. I prefer Fiddler to Wireshark for this because it's purely focused on HTTP/HTTPS and a lot easier to read. However, you have to configure clients to use it as a proxy. With CF, you can do this at the JVM level, or you can change your CFHTTP code to use a specific proxy server. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Service-Disabled Veteran-Owned Small Business (SDVOSB) on GSA Schedule, and provides the highest caliber vendor- authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359467 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFHTTP Raw Request
Donnie, you will need a sniffer on the server to see any HTTP request from CF. If you are doing local development (where cf is installed on your laptop or desktop) then that's where your proxy/sniffer needs to live. CFHTTP is technically not a "browser" request - just a straight HTTP request using tcp. I use wireshark for this - fiddler is more of a browser plugin - or at least, it proxys it's data to a browser. I suspect it "could" work for cfhttp request -just not positive as I've never tried it. Steve's suggestion is a good one and fiddler (or Charles) is a great addition to your toolkit but it may not work in this specific instance. Sorry to redirect your efforts :) -Mark Mark Kruger - CFG CF Webtools www.cfwebtools.com www.coldfusionmuse.com O: 402.932.3318 E: mkru...@cfwebtools.com Skype: markakruger -Original Message- From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] Sent: Tuesday, October 14, 2014 11:53 AM To: cf-talk Subject: Re: CFHTTP Raw Request I think I may be confused. I need to see the raw headers that CFHTTP is creating. I installed Fiddler on the development and ran it. When I call the CF page that includes the CFHTTP, I am not seeing any new requests in Fiddler. I'm not sure how a browser would show me CFHTTP headers that are created. Am I missing something? Thanks, Donnie Carvajal > It's just a program that when run will sit between the browser and the > world outside the computer (internet, intranet, etc). It displays > what is going in and out. > > It's an easy install and adds piece to IE/Chrome/Firefox as well as > installing the App. You just run it and use your web browser. If you > are working with HTTPS/SSL/TLS then there is a way to set it up to > track that data as well (Technically a man in the middle, but you are > doing it to yourself so it's ok). > > Steve > -Original Message- > From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] > Sent: Tuesday, October 14, 2014 11:21 AM > To: cf-talk > Subject: Re: CFHTTP Raw Request > > > Hi Steve, > > Thanks for the suggestion. I've never used Fiddler before. Are there > any special configurations to watch a cfhttp request? > > Thanks, > > Donnie Carvajal ~| 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:359466 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Raw Request
I think I may be confused. I need to see the raw headers that CFHTTP is creating. I installed Fiddler on the development and ran it. When I call the CF page that includes the CFHTTP, I am not seeing any new requests in Fiddler. I'm not sure how a browser would show me CFHTTP headers that are created. Am I missing something? Thanks, Donnie Carvajal > It's just a program that when run will sit between the browser and the > world outside the computer (internet, intranet, etc). It displays > what is going in and out. > > It's an easy install and adds piece to IE/Chrome/Firefox as well as > installing the App. You just run it and use your web browser. If you > are working with HTTPS/SSL/TLS then there is a way to set it up to > track that data as well (Technically a man in the middle, but you are > doing it to yourself so it's ok). > > Steve > -Original Message- > From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] > Sent: Tuesday, October 14, 2014 11:21 AM > To: cf-talk > Subject: Re: CFHTTP Raw Request > > > Hi Steve, > > Thanks for the suggestion. I've never used Fiddler before. Are there > any special configurations to watch a cfhttp request? > > Thanks, > > Donnie Carvajal ~| 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:359465 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Writing an Apache 404 Handler in CF
Hi Jon, thanks for the reply! I'm far from an expert on Apache; in my httpd.conf, I don't seem to have any rewrite rules at all. Where would I put these? Inside the virtualHost section for my redirect app? If it helps any, we're running Railo 4.2.1 on Tomcat 7, not sure if that affects the Apache config. Thanks a bunch! Rob > Youve likely got a rewrite rule passes everything that is not a > document to CF for handling. Im guessing you have a friendly URL > setup that routes everything through index.cfm, which is why the > redirect is taking place. Something like this is probably the > culprit: > > #These are handled by Apache and not by CF > RewriteCond %{REQUEST_URI} \. > (bmp|gif|jpe?g|png|css|js|txt|xls|ico|swf)$ > RewriteRule ^(.*)$ - [NC,L] > > #Everything else is handled by Coldfusion > RewriteRule ^$ index.cfm [QSA,NS] > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule ^(.*)$ index.cfm/%{REQUEST_URI} [QSA,L,NS] > > If you change the rule for static files to include .aspx, then Apache > will handle that 404 as usual: > > RewriteCond %{REQUEST_URI} \. > (aspx|bmp|gif|jpe?g|png|css|js|txt|xls|ico|swf)$ > > HTH, > Jon > > On Oct 10, 2014, at 4:34 PM, Russ Michaels > wrote: > > > > > Wouldn't url rewriting be better for this? > > > > > > On Fri, Oct 10, 2014 at 20:46 PM, Robert Glover > wrote: > > > > > > This is as much an Apache question as it is a CF question; I hope > this is > > acceptable. I posted it to Serverfault several days ago and > haven't > > gotten any response, and it's become a rather critical issue. > > > > - > > > > I've written a custom 404 handler for Apache. The handler looks at > the > > incoming URL (cgi.request_url), queries a database table, and > responds by > > redirecting the visitor to the new URL. What should happen: > > > > www.mysite.co.uk gets redirected to www.mysite.com > > > > That much works fine. But when we get to more complex urls: > > > > www.mysite.co.uk/contact.aspx should go to www.mysite.com/contact/ > > > > Something (Apache?) is stripping out the contact.aspx portion of it > so I > > can't tell where to send the user. In fact, what's happening instead > is > > contact.aspx is replaced with index.cfm (the name of the 404 > handler). No > > other variables returned in the CGI scope contain the contact.aspx > part of > > the url. > > > > Of course, we have the domain to be redirected pointed at this > server via > > DNS, and configured in Apache, since the simple versions of the URL > work > > fine. > > > > Is there a configuration setting or something to get it to stop > stripping > > out the rest of the url? Thanks! > > > > Rob > > > > > > > > ~| 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:359464 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
RE: CFHTTP Raw Request
It's just a program that when run will sit between the browser and the world outside the computer (internet, intranet, etc). It displays what is going in and out. It's an easy install and adds piece to IE/Chrome/Firefox as well as installing the App. You just run it and use your web browser. If you are working with HTTPS/SSL/TLS then there is a way to set it up to track that data as well (Technically a man in the middle, but you are doing it to yourself so it's ok). Steve -Original Message- From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] Sent: Tuesday, October 14, 2014 11:21 AM To: cf-talk Subject: Re: CFHTTP Raw Request Hi Steve, Thanks for the suggestion. I've never used Fiddler before. Are there any special configurations to watch a cfhttp request? Thanks, Donnie Carvajal ~| 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:359463 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: CFHTTP Raw Request
Hi Steve, Thanks for the suggestion. I've never used Fiddler before. Are there any special configurations to watch a cfhttp request? Thanks, Donnie Carvajal > If you are doing this on a developer machine, install fiddler. Then > you can watch everything the request and response and look at the raw > outputs. It has saved me multiple times from pulling my hair out. > > Steve > > -Original Message- > From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] > Sent: Wednesday, October 08, 2014 12:17 PM > To: cf-talk > Subject: CFHTTP Raw Request > > > I have a process that is sending xml via cfhttp and I am not getting > the anticipated response from the web service. I would like to see > the actual headers and the body of the request. > > Does anyone know if there is a way to track the raw request that is > created by a cfhttp post? > > Thanks, > > Donnie Carvajal > ~| 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:359462 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm