View Single Post
  #3  
Old 12-22-2016, 06:36 AM
 
CarterMarter CarterMarter is offline
 

Newbie
  
Join Date: Dec 2016
Posts: 2
 

Default Re: Create a new product using REST API

Thank you for your response. The only suspicious log I find is in the access log:
Code:
[ 06:19:10.000000 ] Controller class not found! Runtime id: a3c8b2b58123395330222b2046272cac SAPI: apache2handler; IP: IP.IP.IP.IP URI: /favicon.ico Method: GET

I doublechecked that I am using the read/write key. I also made sure that the read-only key and the read/write key are not the same.

The only string I receive in the response stream is this null. I am pasting the request and response headers here (sensitive information masked):
Request (when in browser):
Code:
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Encoding:gzip, deflate, sdch Accept-Language:en-US,en;q=0.8,bg;q=0.6,ru;q=0.4,es;q=0.2 Connection:keep-alive Cookie:LCRefererCookie=http%3A%2F%2F192.168.1.34%3A81%2Fbitnami%2Findex.html; mage-messages=%5B%5D; recent_login=some-login; xid_admin_logged=admin_logged; xid=GQMVUKjlmet8lFjNfcnS6gi5krDhyuCY Host:---.---.---.---:---- If-Modified-Since:Thu, 22 Dec 2016 06:19:09 -0800 If-None-Match:37a6259cc0c1dae299a7866489dff0bd Upgrade-Insecure-Requests:1 User-Agent:Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36

Response 304 (Not modified):
Code:
Connection:Keep-Alive Date:Thu, 22 Dec 2016 14:22:52 GMT ETag:37a6259cc0c1dae299a7866489dff0bd Keep-Alive:timeout=5, max=100 Server:Apache Set-Cookie:xid=GQMVUKjlmet8lFjNfcnS6gi5krDhyuCY; path=/; domain=---.---.---.---; httponly Vary:Cookie

I have the same situation when issuing the request from a program.
__________________
REST API 5.3.2
XCART 5.3.1.6 Rev0 Bitnami Windows
Reply With Quote