Solved

cfhttp Could not import data?

Posted on 2006-10-21
5
195 Views
Last Modified: 2013-12-24
Hi, i am trying to do a http post, i have tested all my data and query database outputs and they all work fine. i am trying to get another system to import my order. all i have to do is sent it like so, so i was told.....

http://www.domain.co.uk?MMID=123456862&VendorTxCode=54584684&delTotal=1.70&CartTax=2.53&address1=123 Test Street&address2=&address3=&name=Mr Test2 &shipName=&company=&shipCompany=&shipAddress1=&shipAddress2=&shipAddress3=&city=Rockville&shipCity=&shipCounty=&shipPostCode=&country=USA&shipCountry=&email=testing2x@mediamount.co.uk&password=pass&subtotal=12.75&delTotal=1.70&county=MD&CartItems=Test Product:5:2.55:0.1:98&fax=&mobile=&Currency=Pound&post_code=20850&Amount=16.98&paymenttype=paypal&tel=301-762-1410&ClientIPAddress=69.138.182.65&timedate=20/10/2006 19:44:52&


so my post is like so (all data is correct and is pulling from the database on my side fine)...


<cfhttp method="Post" url="http://www.domain.co.uk/>
<cfhttpparam type="Formfield" value="#CartItems#" name="CartItems">

<cfhttpparam type="Formfield" value="123456862" name="MMID">
<cfhttpparam type="Formfield" value="#SESSION.protx.VendorTxCode#" name="order_id">

<cfloop query="customerTb">

<cfhttpparam type="Formfield" value="#ip#" name="ClientIPAddress">
      <cfhttpparam type="Formfield" value="#timedate#" name="timedate">
      <cfhttpparam type="Formfield" value="#paymenttype#" name="paymenttype">
      <cfhttpparam type="Formfield" value="#subtotal#" name="subtotal">
      <cfhttpparam type="Formfield" value="#delTotal#" name="delTotal">
      <cfhttpparam type="Formfield" value="#tax#" name="CartTax">


etc.

but all i get on there side is:



File Content:
Could not import data because no data or MMID

Microsoft VBScript runtime error '800a01f9'

Invalid or unqualified reference
Mime Type: text/html



anyone know why, does http work this way?
0
Comment
Question by:pigmentarts
  • 3
  • 2
5 Comments
 
LVL 13

Accepted Solution

by:
usachrisk1983 earned 500 total points
ID: 17780661
It looks like you're using POST, but the other site is expecting a GET - try changing that and see if it helps.
0
 
LVL 12

Author Comment

by:pigmentarts
ID: 17783600
yes you were right thanks
0
 
LVL 13

Expert Comment

by:usachrisk1983
ID: 17800736
Great, please accept the answer :)
0
 
LVL 13

Expert Comment

by:usachrisk1983
ID: 17800739
Ooops, wasn't showing green in my browser, I see you did, d'uh! :)
0
 
LVL 12

Author Comment

by:pigmentarts
ID: 17801763
no problems thanks for helping me out
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question