curl

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
curl [03/09/2024 - 11:06] – [Request/Response Information] admin1curl [03/09/2024 - 11:12] (aktuell) – [Proxy Auth] admin1
Zeile 4: Zeile 4:
  
 https://ec.haxx.se/ https://ec.haxx.se/
- 
-[[https://curl.haxx.se/docs/httpscripting.html|https://curl.haxx.se/docs/httpscripting.html]] 
  
 [[https://curl.haxx.se/docs/manual.html|https://curl.haxx.se/docs/manual.html]] [[https://curl.haxx.se/docs/manual.html|https://curl.haxx.se/docs/manual.html]]
  
 +[[https://curl.haxx.se/docs/httpscripting.html|https://curl.haxx.se/docs/httpscripting.html]]
 +
 +https://hasdata.com/blog/curl-with-proxy
 ====== Request/Response Information ====== ====== Request/Response Information ======
  
Zeile 68: Zeile 69:
 Content-Type: text/html; charset=utf-8 Content-Type: text/html; charset=utf-8
 <* Connection #0 to host www.netzwissen.de left intact <* Connection #0 to host www.netzwissen.de left intact
-<code>+</code>
  
 ====== Proxy Anfragen ====== ====== Proxy Anfragen ======
 +
 +Basis Syntax
 +
 +<code>
 +curl -x proxy_address:proxy_port URL
 +</code>
 +
 +Mit dieser Anfrage bekommt an die eigene IP zurück, als Beweis, dass der Proxy selber tut:
 +
 +<code>
 +curl -x 195.154.243.38:8080 https://httpbin.org/ip
 +</code>
 +
 +===== Proxy Auth =====
 +
 +<code>
 +curl --proxy-user username:password -x proxy_address https://httpbin.org/ip
 +</code>
 +
 +Kaputte Zertifikate umgehen
 +
 +<code>
 +curl --proxy http://proxy.example.com:8080 --insecure https://httpbin.org/ip
 +</code>
 +
 +
 +===== Proxy Request mit Header =====
 +
 +<code>
 +curl -x proxy_address -H "Header-Name: Header-Value" https://httpbin.org/ip
 +</code>
 +
  
  • curl.1725361570.txt.gz
  • Zuletzt geändert: 03/09/2024 - 11:06
  • von admin1