Raised This Month: $ Target: $400
 0% 

Sockets HTTPs on GitHub


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-09-2014 , 09:22   Re: Sockets HTTPs on GitHub
Reply With Quote #1

Quote:
Originally Posted by HamletEagle View Post
Idk much about http, but shouldn't you use HTTPS instead of HTTP ? Again, no ideea, just asking.
He is already using HTTPS, by connecting to remote on port 443.

@Guskis, try using port 80 or 8080 instead for HTTP.
klippy is online now
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 11-09-2014 , 09:31   Re: Sockets HTTPs on GitHub
Reply With Quote #2

Quote:
Originally Posted by KliPPy View Post
He is already using HTTPS, by connecting to remote on port 443.
Actually he is not, there is more to it than simply connecting on 443.

cURL output when using HTTPS
Code:
# curl -v https://google.com
* About to connect() to google.com port 443 (#0)
*   Trying 173.194.46.73... connected
* Connected to google.com (173.194.46.73) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* SSL connection using TLS_RSA_WITH_RC4_128_SHA
* Server certificate:
*       subject: CN=*.google.com,O=Google Inc,L=Mountain View,ST=California,C=US
*       start date: Oct 22 12:55:10 2014 GMT
*       expire date: Jan 20 00:00:00 2015 GMT
*       common name: *.google.com
*       issuer: CN=Google Internet Authority G2,O=Google Inc,C=US
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: google.com
> Accept: */*
cURL output when using Port 443
Code:
# curl -v google.com:443
* About to connect() to google.com port 443 (#0)
*   Trying 173.194.46.68... connected
* Connected to google.com (173.194.46.68) port 443 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.1 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: google.com:443
> Accept: */*
Notice how the HTTPS one sends SSL info and the 443 one does not.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 11-09-2014 at 09:32.
YamiKaitou is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:35.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode