update readme with curl options
authorcavaliet
Wed, 02 May 2012 13:45:37 +0200
changeset 93 dff31c10f751
parent 92 20d1e46920dc
child 94 95ccb3524522
update readme with curl options
README.md
--- a/README.md	Wed Apr 11 12:17:38 2012 +0200
+++ b/README.md	Wed May 02 13:45:37 2012 +0200
@@ -199,6 +199,19 @@
             ...    
             ignore_wikipedia_error: true
 
+## More configuration 4 : curl parameters
+This option enables to add any parameter to the curl requests, since the wikipedia request are made from the server. For example, it is useful when the server is behind a firewall.
+
+        wiki_tag:
+            ...    
+            curl_options:
+            	CURLOPT_HTTPPROXYTUNNEL:  'TRUE'
+            	CURLOPT_PROXYAUTH: 'CURLAUTH_NTLM'
+            	CURLOPT_USERAGENT: 'Mozilla/5.0 Gecko/20100101 Firefox/10.0.1'
+            	CURLOPT_PROXY: 'my.proxy.url:1234'
+            	CURLOPT_PROXYUSERPWD: 'MY-DOMAIN\user:password'
+            	CURLOPT_PROXYTYPE: 'CURLPROXY_HTTP'
+
 ## Services
 
 ### Document Service : wiki_tag.document - IRI\Bundle\WikiTagBundle\Services\DocumentService