Solved

cfhttp Could not import data?

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Coldfusion update database with CFLOOP 5 64
Citrix Web Interface 5.4 logon section customization 2 83
Use System DSN 6 88
Link failure 16 34
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

828 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