Solved

cfhttp Could not import data?

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

New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Transferring website to another host 7 57
Running Guacamole on port 80 5 156
How can I install php on a ngxin server on droplet 5 122
Asp.net plan security, reliable, stable 2 110
This is a guide to setting up a new WHM/cPanel Server to be used for web hosting accounts. It is intended for web hosting company administrators and dedicated server owners. For under $99 per month (considering normal rate of Big Data Cetnters like …
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

19 Experts available now in Live!

Get 1:1 Help Now