cURL

libcurl:
"wget http://curl.haxx.se/download/curl-7.33.0.tar.gz"
"tar -xzf curl-7.33.0"
"cd curl-7.33.0"
"./configure –bindir=/usr/bin –sbindir=/usr/sbin –libdir=/usr/lib64 –includedir=/usr/include"
"make"
"make install"


Achtung bei Leap 42.1 geht davon das yast2 (Software Management) kaputt.
	Problem:
		YaST got signal 11 at file /usr/lib64/ruby/vendor_ruby/2.1.0/yast/i18n.rb:134
		sender PID: 931016432
		/sbin/yast2: line 440: 97844 Segmentation fault      $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS
	Lösung:
		Yast2 funktioniert nicht mit "libcurl.so.4.4.0", daher wieder den alten Symlink wiederherstellen.
		"cd /usr/lib64"
		"rm -frv libcurl.so.4"
		"ln -s libcurl.so.4.3.0 libcurl.so.4"

	Problem:
	Ab Leap 42.1 und Curl 7.48
		/var/tmp/portage/net-misc/curl-7.48.0/work/curl-7.48.0/lib/vtls/openssl.c: In function 'Curl_ossl_cleanup':
		/var/tmp/portage/net-misc/curl-7.48.0/work/curl-7.48.0/lib/vtls/openssl.c:739:3: error: too few arguments to function 'ERR_remove_thread_state'
		ERR_remove_thread_state();
		^
		In file included from /usr/include/openssl/engine.h:91:0,
		from /var/tmp/portage/net-misc/curl-7.48.0/work/curl-7.48.0/lib/urldata.h:88,
		from /var/tmp/portage/net-misc/curl-7.48.0/work/curl-7.48.0/lib/vtls/openssl.c:41:
		/usr/include/openssl/err.h:351:6: note: declared here
		void ERR_remove_thread_state(const CRYPTO_THREADID *tid);
	Lösung:
		"vi lib/vtls/openssl.c" ->
			//#if (OPENSSL_VERSION_NUMBER >= 0x10100004L)					//Auskommentieren
			#if (OPENSSL_VERSION_NUMBER >= 0x10100004L) && \				//hinzufügen
			!defined(LIBRESSL_VERSION_NUMBER) && \							//hinzufügen
			!defined(OPENSSL_IS_BORINGSSL)									//hinzufügen
			/* OpenSSL 1.1.0-pre4 removed the argument! */

	Problem bei SLES 11 und openSSL update zuvor und CURL 7.5 .
		curl --version
			curl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
	Lösung:
		strace curl --version
		ln -s /usr/local/lib64/libssl.so.1.1 /usr/lib64/libssl.so.1.1
		ln -s /usr/local/lib64/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1
			
################################################################################
#Curl Commands

"curl --silent -I http://149.249.148.49" = Web Server Version
	HTTP/1.1 302 Redirect
	Content-Length: 152
	Content-Type: text/html; charset=UTF-8
	Location: ./EAPortal/pages/Default.aspx
	Server: Microsoft-IIS/8.5
	X-Powered-By: ASP.NET
	Date: Wed, 07 Sep 2016 14:21:59 GMT
	Proxy-Connection: Keep-Alive
	Connection: Keep-Alive
"curl -O http://yum.mariadb.org/5.5.33a/fedora18-amd64/rpms/galera-23.2.7-1.fc18.x86_64.rpm" = Alternative zu wget
"curl --insecure -XPOST -v https://172.17.190.47/?p=1467" = POST Kommunikation anzeigen.

Post Revisions:

Tags:  , ,