?
Solved

cfhttp Could not import data?

Posted on 2006-10-21
5
Medium Priority
?
204 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 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
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…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

864 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