Solved

cfhttp Could not import data?

Posted on 2006-10-21
5
189 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now