cfhttp

ColdFusion Twitter API Bad Request

馋奶兔 提交于 2019-12-11 01:48:20
问题 I'm working on a project involving grabbing twitter data info, parsing it, and displaying it on our website for administration purposes. We're also looking into posting tweets or updates via a web interface interlocked with the Twitter REST API, but to start off, I wanted to do simple GETs. I'm trying to do one of my home_timeline via the API documentation on dev.twitter.com, and I'm getting a 400 Bad Request error in my data response. This is the ColdFusion code I'm using to execute that GET

screen scraping using coldfusion

那年仲夏 提交于 2019-12-10 23:56:53
问题 I am trying to screen scrape another application using the below code in Coldfusion. <cfhttp url="https://intra.att.com/itscmetrics/EM2/LTMR.cfm" method="get" username="uvwxyz" password="abcdef"> <cfhttpparam type="url" name="LTMX" value="Andre Fuetsch / Shelly K Lazzaro"> </cfhttp> <cfset myDocument = cfhttp.fileContent> <cfoutput> #myDocument# </cfoutput> Now when I run my cfm page, iam able to access the desitination page, with the above code. The destination page looks like below. A part

Convert SoapUI Request into CFHTTP

瘦欲@ 提交于 2019-12-10 19:28:18
问题 I am looking at a request in SoapUI that is sending header info to a specific endpoint but I am having a hard time recreating it in ColdFusion. Below is what the RAW request looks like in SoapUI: >> "GET https://test-01.mywebsite.com/data_api//1.0/service/requests HTTP/1.1[\r][\n]" >> "Accept-Encoding: gzip,deflate[\r][\n]" >> "Authorization: Bearer A1BEC30F7E0273059E775A6A2645E273[\r][\n]" >> "Host: test-01.mywebsite.com[\r][\n]" >> "Connection: Keep-Alive[\r][\n]" >> "User-Agent: Apache

how to get cfhttp.filecontent when throwonerror=true on cfhttp?

限于喜欢 提交于 2019-12-10 18:01:25
问题 I make a REST service call using cfhttp with the throwonerror attribute set to true. When I use a try/catch statement to capture the error, I can't seem to find a way to output what error the REST service call tried to return, which would reside in the cfhttp.filecontent variable. I also tried putting the result in a variable. Coldfusion keeps telling me that cfhttp and that variable dont exist. It seems like the call and its result get thrown out the door when an exception is raised. I've

cfhttp dns resolution

纵饮孤独 提交于 2019-12-10 17:49:55
问题 i'm trying to get CFHTTP to talk to a domain that i have created for testing purposes on my test server. the address of the domain is "mydomain.example.com". everytime i try to connect using cfhttp i get an error stating: Your requested host "mydomain.example.com" could not be resolved by DNS. i have already added the entry in the windows hosts file. mydomain.example.com 127.0.0.1 i've also made sure that java.net.InetAddress can resolve the domain by doing the following in a coldfusion page:

How to emulate a real http request via cfhttp?

故事扮演 提交于 2019-12-10 04:26:44
问题 I need to emulate a real http request via cfhttp. I was getting rss feed with ColdFusion, but tonight they started to block my request and send an index page in response instead of rss fead. I added useragent for cfhttp, but it doesn't help. Opera, Firefox and Chrome open feed correctly from the same computer. 回答1: Yep, thanks. I sniffed all HTTP headers which browser sends to the site and then emulated them in cfhttp request. The solution is: <cfhttp url="http://example.com/feed" useragent=

ColdFusion Post To Twitter Authentication Error

断了今生、忘了曾经 提交于 2019-12-08 12:41:48
问题 First off, my project requires me to make my own module so I can't use the various packages and products out there. Having said that, using the correct token, consumer_key, consumer_secret and token_secret variables, creating the correct Base Signature String and thus OAuth Signature from that string, I have had NO problem grabbing Twitter data via my ColdFusion module. If either of them were off, I wouldn't be able to even get Twitter data. So knowing that my variables are correct, I am

How to emulate a real http request via cfhttp?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 04:59:09
I need to emulate a real http request via cfhttp. I was getting rss feed with ColdFusion, but tonight they started to block my request and send an index page in response instead of rss fead. I added useragent for cfhttp, but it doesn't help. Opera, Firefox and Chrome open feed correctly from the same computer. Yep, thanks. I sniffed all HTTP headers which browser sends to the site and then emulated them in cfhttp request. The solution is: <cfhttp url="http://example.com/feed" useragent="Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.7 (KHTML, like Gecko) Chrome/5.0.391.0 Safari/533.7"

CFHTTP: first request fast, following slow

自闭症网瘾萝莉.ら 提交于 2019-12-05 04:41:25
I'm having a lot of trouble with CF10's CFHTTP at the moment. First, my test script: <CFSET results = arraynew(1) /> <CFLOOP from="1" to="10" index="idx"> <CFSET timer_start = getTickCount() /> <CFHTTP url="https://www.google.de" method="get" result="test" /> <CFSET arrayappend(results, (getTickCount()-timer_start)/1000 & " s") /> </CFLOOP> <CFDUMP var="#results#" /> 10 CFHTTP calls in a row, the time they take gets pushed to an array; that's all. Results of our CF9 server: Results of our CF10 server: Results of our CF10 server with 5 sec delay between CFHTTP calls: I already read on the forum

Scheduled Tasks not running - Coldfusion Server Administration

不问归期 提交于 2019-12-01 23:14:58
I have a series of scheduled tasks that all run at various times of the day. Since the migration from Coldfusion version 7 to 10, these tasks have stopped running. When I check the box, that outputs the results to a file, I get a text file that says nothing more than "Connection Failure". I have tried everything imaginable regarding the username and password for the task. It makes no difference. When I run the CFM page in my browser, the page works correctly and generates an email just like it should. I just can't make it run as a scheduled event. Is the scheduled task folder has any check for