csv_export_documentation:csv_request_and_response

csv_export_documentation:csv_request_and_response

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
csv_export_documentation:csv_request_and_response [2019/04/29 18:05]
florian [CSV file]
csv_export_documentation:csv_request_and_response [2019/09/19 11:35]
florian [Parameters]
Line 1: Line 1:
-===== Export documentation:​ CSV format ​=====+===== Export documentation:​ CSV parameters and response=====
  
 Due to run-time restrictions,​ an export must be sequentially callable.\\ Due to run-time restrictions,​ an export must be sequentially callable.\\
Line 20: Line 20:
   * ''​language''​   * ''​language''​
     * Determines the language of the items to be exported.     * Determines the language of the items to be exported.
 +
 +<​note>​Please make sure to whitelist the HTTP user agent "​FINDOLOGIC"​ if you are restricting access to the export via user agents.</​note>​
  
 ---- ----
Line 48: Line 50:
 ==== CSV file ==== ==== CSV file ====
  
-The item data is being exported to a CSV file according to a corresponding [[export_patterns:csv|format]]. \\+The item data is being exported to a CSV file according to a corresponding [[csv_export_documentation:csv_format|format]]. \\
 The file name has to be put out after the export (see example below). The file name has to be put out after the export (see example below).
  
Line 88: Line 90:
     * The items are exported to the ''​CSV-file''​.     * The items are exported to the ''​CSV-file''​.
   - Response   - Response
-    * A forward ​to the next item interval ​is returned.+    * A redirect ​to the next page is returned.
     * <​code>​HTTP/​1.1 302 Found     * <​code>​HTTP/​1.1 302 Found
 Location: http://​www.mein-shop.de/​findologic_export.php?​start=100&​limit=100&​language=de&​shopkey=ABCDABCDABCDABCDABCDABCDABCDABCD Location: http://​www.mein-shop.de/​findologic_export.php?​start=100&​limit=100&​language=de&​shopkey=ABCDABCDABCDABCDABCDABCDABCDABCD
Line 96: Line 98:
     * The value of the ''​start''​ parameter is the respective value of the last ''​start''​ parameter plus the value of the limit parameter.     * The value of the ''​start''​ parameter is the respective value of the last ''​start''​ parameter plus the value of the limit parameter.
     * The value of the ''​limit''​ parameter remains the same.     * The value of the ''​limit''​ parameter remains the same.
-  - Repetition from Item 3 +  - Repeat until all products are exported. Stop redirecting then. 
-  - Completion+
     * If the last item has been exported, the relevant status message is put out:     * If the last item has been exported, the relevant status message is put out:
     * <​code>​HTTP/​1.1 200 OK     * <​code>​HTTP/​1.1 200 OK
Line 142: Line 143:
 === Load-Balancing === === Load-Balancing ===
  
-If you use load-balancing in your infrastructure,​ please ensure, that export calls are always forwarded to the same host or to a host that is outside the cluster. Otherwise the export cannot be completely generated.+If you use load-balancing in your infrastructure,​ please ensure, that export calls are always forwarded to the same host or to a host that is outside the cluster. Otherwise the export cannot be completely generated ​because of the redirect chain
  
 \\  \\