Copy link to clipboard
Copied
We recently migrated our web site to a new server running CF9 (64-bit, Windows 2003) and I had several scheduled tasks that run on a night basis. So I set up the tasks in the CF Administrator but when try and run them via the administrator I get an error and the in the Scheduler Log I get a "400 Bad Request". Now the URLs defined in the scheduler is a page on our site under our domain (e.g. http://www.lake-link.com/scheduledTasks/daily.cfm ect) (This is not a working URL but just an example for this). If I run the link in a web browser it works fine, but it continues to get a 400 bad request when run in the CF Administrator. Now when I change the URL in the CF Administrator to localhost (http://localhost/scheduledTasks/daily.cfm) it works fine but I do not want to do this as there will be other domains on this server and each of them will have their own scheduled tasks and local host can only be defined for a single site. Is this an IIS setting or security setting? Why would the URL be getting a 400 Bad Request from within CF and not when I run it via a browser? Any help is appreciated!!!
Copy link to clipboard
Copied
Hi
When you say you run the link in a browser, is this the browser on the server? Does it work when you run the job from the browser on the server?
Also, Is the target address password protected in any way?
Cheers
Copy link to clipboard
Copied
What if you try to <cfhttp> that URL. Same problem?
--
Adam
Copy link to clipboard
Copied
Thanks for the suggestions everyone. With more research we found it to be an internal DNS issue behind the firewall. Since the CF server was making the web request behind the firewall it encountered the problem. Glad to know it was not a CF bug!