Hi there,
I'm having problems using CFHTTP in ColdFusion 4.5
I want to send an XML request containing a postcode sector off to a web
server which is then supposed to spit XML back at me with x and y
coordinates for that postcode sector. Sounds simple? Well it's not
working for me! All I get is a Connection Failure.
I know this should work because I've used a form to do something
similar. Also, someone else managed to get this bit of code to work on
more recent versions of ColdFusion. Does anyone know how I can get this
to work in CF 4.5?
Here is my code...
<h1>Postcode test</h1>
<cfset test="<?xml version='1.0' encoding='UTF-8'?> <gazetteer-service
xmlns='http://www.alexandria.ucsb.edu/gazetteer'
version='1.1'>
<query-request>
<gazetteer-query>
<name-query operator='equals' text='YO31 8'/>
</gazetteer-query>
<report-format>standard</report-format>
<srs>EPSG:4277</srs>
</query-request>
</gazetteer-service>">
<cfhttp method="post"
url="">
et/">
<cfhttpparam type="FormField" name="request" value="#test#"> </cfhttp>
<cfoutput>#CFHTTP.FileContent#</cfoutput>
Cheers,
Jen
_________________________________________________
Jenny Mitcham
Curatorial Assistant
Archaeology Data Service
Room 211
The King's Manor
York
YO1 7EP
UK
phone +44 (0)1904-433967
fax +44(0)1904-433939
http://ads.ahds.ac.uk/catalogue/
_________________________________________________
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]