Forums / Built-in Shipping and Payment Modules / CURL Test Fails Linkpoint Test

CURL Test Fails Linkpoint Test

Locked

Started by communicasting on 10 Nov 2008, 10:23 PM · Views: 5,555

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
10 Nov 2008, 10:23 PM
#1
communicasting avatar

communicasting

New Zenner

Join Date:
Nov 2008
Location:
St. Petersburg, Florida
Posts:
5
Plugin Contributions:
0

CURL Test Fails Linkpoint Test

Aloha from sunny Florida!

My normal CURLTEST.php comes back "good." But, I ran my curltest.php to test linkpoint (.../extras/curltest.php?linkpoint=1), and got back the following error:

Array
(
    [url] => "https://secure.linkpt.net:1129/LSGSXML"
    [http_code] => 200
    [header_size] => 40
    [request_size] => 175
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0.533742
    [namelookup_time] => 0.189605
    [connect_time] => 0.234021
    [pretransfer_time] => 0.485921
    [size_upload] => 37
    [size_download] => 280
    [speed_download] => 524
    [speed_upload] => 69
    [download_content_length] => 280
    [upload_content_length] => 0
    [starttransfer_time] => 0.533522
    [redirect_time] => 0
)

Malformed or unrecognized request. EOF

I have scanned port 1129 and it is open. What dost mine error meaneth?

10 Nov 2008, 11:39 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: CURL Test Fails Linkpoint Test

That is normal. The fact that you got a response back from Linkpoint means that your server can talk to the Linkpoint server properly.

The attempt to contact the Linkpoint server only sends a request to verify that the server can respond. It doesn't contain any valid transaction data, thus the error message you see reported about Malformed request.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Nov 2008, 2:48 PM
#3
communicasting avatar

communicasting

New Zenner

Join Date:
Nov 2008
Location:
St. Petersburg, Florida
Posts:
5
Plugin Contributions:
0

Re: CURL Test Fails Linkpoint Test

Hmm, i see. Well then i guess my issue is not what i originally thought:
I am getting the dreaded "We apologize for the inconvenience, but we are presently unable to contact the Credit Card company for authorization" message after clicking "confirm" during checkout. I have double-checked everything that you said in the thread http://www.zen-cart.com/forum/showthread.php?t=62108, and i have run out of ideas!

My info:
I have Zen Cart 1.3.8a
I'm on BlueHost, have a dedicated IP address and SSL
Port 1129 says "open" when scanned (It took a lot to get it opened through Bluehost!)
The curltest.php comes back "good"
My .pem file is in the right place, and i have entered the account number into the Linkpoint module

When i access my .pem file through my full URL in HTTP, i get a "403 Forbidden" on port 80
When i access my .pem file through my full URL in HTTPS, i get a "403 Forbidden" on port 443

Thank you for responding so quickly!

11 Nov 2008, 3:30 PM
#4
website_rob avatar

website_rob

Inactive

Join Date:
Oct 2006
Location:
Alberta, Canada
Posts:
4,572
Plugin Contributions:
0

Re: CURL Test Fails Linkpoint Test

Problem doesn't seem to be with Zen Cart.

I would suggest you contact LinkPoint and your Hoster, and in that order.
One of them should be able to help sort this out. :smile:

The learning is in the doing.

Potent Products

11 Nov 2008, 8:12 PM
#5
communicasting avatar

communicasting

New Zenner

Join Date:
Nov 2008
Location:
St. Petersburg, Florida
Posts:
5
Plugin Contributions:
0

Re: CURL Test Fails Linkpoint Test

I'm stuck in this never-ending loop. I contacted LinkPoint, and they said the only issue they could find is they thought port 1129 wasn't open. I rescanned my port and found it to be closed! (After i had opened it through a script BlueHost provided me with)

BlueHost said they see the port is open, and that all ports are open with a dedicated IP account. I telnetted to my server on port 1129 and it comes back with "Could not open connection to the host, on port 1129: Connect failed."

I re-ran the perl script in the SSH shell, and telnet now repeatedly says "Connected to server on port 1129" and when scanned with "http://ping.eu", it says that port 1129 is open.

However, i just ran a purchase through my cart and got the same "presently unable to contact the Credit Card company for authorization" message.

12 Nov 2008, 7:14 AM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: CURL Test Fails Linkpoint Test

In your Linkpoint module, turn on Debug Log To File, and try a transaction.

You'll see a log of the transaction/communication details in the /cache folder, which may tell you more about what's going on.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Nov 2008, 3:41 PM
#7
communicasting avatar

communicasting

New Zenner

Join Date:
Nov 2008
Location:
St. Petersburg, Florida
Posts:
5
Plugin Contributions:
0

Re: CURL Test Fails Linkpoint Test

Contents of "Linkpoint_Debug_1-IaNWts_FAILED1226502920_neD8.log"

Nov-12-2008 08:15:20
=================================

Communication Result: 7 - couldn't connect to host

Response Code: <

Sending to Gateway: 
result = LIVE
oid = 1-IaNWts

**Order info hidden**

comments = Website Order
items = Array
(
    [0] => Array
        (
            [id] => 365
            [description] => $25 Gift Certificate
            [quantity] => 1
            [price] => 25.00
        )

)

ordertype = SALE
host = secure.linkpt.net
port = 1129
keyfile = **This is the full link to my PEM file**
configfile = **This is my account number, the same as the PEM file without ".pem" extension**
transactionorigin = ECI
terminaltype = UNSPECIFIED


Result: proved>FAILURE</r_approved><r_error>Could not connect.</r_error>

Communication Result: 7 - couldn't connect to host
CURL info: Array
(
    [url] => https://secure.linkpt.net:1129/LSGSXML
    [http_code] => 0
    [header_size] => 0
    [request_size] => 0
    [filetime] => -1
    [ssl_verify_result] => 0
    [redirect_count] => 0
    [total_time] => 0
    [namelookup_time] => 0.083704
    [connect_time] => 0
    [pretransfer_time] => 0
    [size_upload] => 0
    [size_download] => 0
    [speed_download] => 0
    [speed_upload] => 0
    [download_content_length] => 0
    [upload_content_length] => 0
    [starttransfer_time] => 0
    [redirect_time] => 0
)

Using CURL Proxy: [proxy.shr.secureserver.net:3128]  with Proxy Tunnel: Off
12 Nov 2008, 4:12 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: CURL Test Fails Linkpoint Test

communicasting:

Using CURL Proxy: [proxy.shr.secureserver.net:3128]
If you're not on a GoDaddy server, why are you using a GoDaddy proxy?

Go to Admin->Configuration->CURL Proxy Status, and turn it off.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 Nov 2008, 5:08 PM
#9
communicasting avatar

communicasting

New Zenner

Join Date:
Nov 2008
Location:
St. Petersburg, Florida
Posts:
5
Plugin Contributions:
0

Re: CURL Test Fails Linkpoint Test

DrByte:

If you're not on a GoDaddy server, why are you using a GoDaddy proxy?

Go to Admin->Configuration->CURL Proxy Status, and turn it off.

EUREKAAAAAA!!!

I DID used to have the cart installed on a godaddy server, moved it using these instructions [https://www.zen-cart.com/tutorials/index.php?article=100], and didn't even know that "Proxy Status" exsisted!! Successful checkout completed!!!

THANK YOU, THANK YOU, THANK YOU!