PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 30th, 2009, 11:07 AM
NewWEBdesigner NewWEBdesigner is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 109 NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 18 h 3 m 44 sec
Reputation Power: 39
SSL certificate problem

Hello all,

I am trying to access Commission Junction's API via a REST request. When I run the code below I get this error: "Curl error: SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed "

My computer is running Apache, PHP and MySQL through WAMP. Is it possible that I don't have something in either PHP or Apache that I need to turn on? I have scoured the internet for hours and can't find an answer to this question.

Here is information regarding REST request from Commission Junction's website
http://help.cj.com/en/web_services/web_services.htm#product_catalog_search_service_rest.htm

PHP Code:
<?php $url "https://product-search.api.cj.com/v2/product-search?website-id=XXXXXXX&advertiser-ids=1566996&serviceable-area=US&advertiser-sku=210790596&keywords=&currency=USD";   $ch curl_init(); $CJ_KEY ='00bc6addff460bdfb61689a6b153deca753cad4b171931e2bd715099f511dbe1f72944588882ba974f7be7a7490faad8f0  34209a4c5bb9f510bbcf1a3f3b4a7a77/0090be60307cf51e34d9f78110f4e7500ce442144f785174682826cd3f112b23d8d44136d0f9b5b48ea8089521ec76e295dc  50e1b2fa7754e2bb8905c05e152071'curl_setopt($chCURLOPT_URL$url); curl_setopt($chCURLOPT_POSTFALSE); curl_setopt($chCURLOPT_RETURNTRANSFERTRUE); curl_setopt($chCURLOPT_HTTPHEADER, array('Authorization: ' $CJ_KEY)); $curl_results curl_exec($ch);   $info simplexml_load_string($curl_results); print_r($info); echo "Curl error: " curl_error($ch?>

Last edited by NewWEBdesigner : August 30th, 2009 at 11:09 AM. Reason: confused WINAMP with WAMP

Reply With Quote
  #2  
Old August 30th, 2009, 12:30 PM
NewWEBdesigner NewWEBdesigner is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2007
Posts: 109 NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level)NewWEBdesigner User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 18 h 3 m 44 sec
Reputation Power: 39
It works! thank you for your help.

Reply With Quote
  #3  
Old February 12th, 2013, 02:11 PM
rockrem rockrem is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2013
Posts: 1 rockrem User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 58 sec
Reputation Power: 0
curl GET method with developer key

You can use following curl GET method as well:

curl -G -H "Authorization:00c493a8454f391ceb9561971842c993bca21dd87196ca73d0ebcb963cfb167b7d1701f314a7043c5f3340 b99b4f6bd6a33bab76db4b1e2ab28a7e6940979c5afd/452a3af3a00b555ca2a3c2b8fb8ed75770a715a7e9c973f497727b7b1b516ec317bdcc94198b35dfc179b3318aca35a6e5ea efdadd5eb323e0574de26291d6b5" -d "date-type=event" -d "start-date=2013-01-23" -d "end-date=2013-01-24" URL

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > SSL certificate problem

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap