Help... Getting data from netstream through HTTPS connection?
Author |
Message |
LaZ3R
|
Posted: Mon Apr 21, 2008 8:46 pm Post subject: Help... Getting data from netstream through HTTPS connection? |
|
|
So I've kind of moved away from the image/file downloading program me and a friend were working on. He's still working on it, but I've taken on a new project inspired by someone else who did something in another language.
What I am talking about of course... is a Turing client which connects to the MSN servers and allows you to communicate using your very own turing client and speak with our buddies on any other clients which use the MSN protocol.
I've gotten turing to perfectly connect to MSN and complete steps 1 and 2 out of 3. But step 3 involves Tweener which is the final part of the connection process. This process involves using an HTTPS connection to ensure the password and email being passed along to the server are encrypted. For some odd reason, I put all the headers into the netstream but I receive no response back. If I change the port from the 443 (I'm guessing this port is used for HTTPS) to 80 (Regular HTTP connection), but leave all the header data the same, I actually get a response instead, but th response includes "Bad Request" in the header and I don't get what I'm actually looking for.
If anyone has any idea why this isn't working , let me know
My port 443 is open... it's normally open for everyone as it's used for HTTPS connections I believe. Anyone who gives me the answer to this will be put into the special thanks part of this msn client
Alpha name is Turessenger (Turing Messenger).
This client would basically allow you to login using your msn/hotmail passport and password (No I'm not making this program store any passwords/ usernames of any sort, The thought did cross my mind but I'm not an evil programmer ), and connect to the network, download your entire friends list, and allow you to create a chat session just as the regular MSN Live client does.
Help please? |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Dan
|
Posted: Mon Apr 21, 2008 9:15 pm Post subject: RE:Help... Getting data from netstream through HTTPS connection? |
|
|
Have you acuataly implmented HTTPS in turing? Simpley chaning the port to 443 will not make it use a secure connection. You need to encrypt the traffic and complile to the HTTPS protical.
Also you might run in to the turing bug where some ascii chars like the the null char will break turing (unless you have found a way around that). |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
LaZ3R
|
Posted: Mon Apr 21, 2008 9:24 pm Post subject: RE:Help... Getting data from netstream through HTTPS connection? |
|
|
Hah, I know port 443 alone won't do that for me
I assume turing has no library premade for this so I'd have to make that myself? I searched around but am not sure of any links which would help me learn how to do this.
As for the ascii chars like null, that has been easily taken care of so that's not my problem. |
|
|
|
|
|
Mackie
|
Posted: Mon Apr 21, 2008 10:44 pm Post subject: RE:Help... Getting data from netstream through HTTPS connection? |
|
|
Oh no! Why did you give up on the image downloader! That would have been so useful. -_- |
|
|
|
|
|
LaZ3R
|
Posted: Mon Apr 21, 2008 10:48 pm Post subject: RE:Help... Getting data from netstream through HTTPS connection? |
|
|
I've just taken a break myself. My friend is still fine tuning it I believe. The main problem is that though the code works on some sites, it doesn't work on all.
Most sites will download half the image and the rest will be corrupted in the preview shown in IE or firefox.
Don't worry |
|
|
|
|
|
LaZ3R
|
Posted: Tue Apr 22, 2008 3:20 pm Post subject: RE:Help... Getting data from netstream through HTTPS connection? |
|
|
Yeah... I'd probably have to make my own file to handle HTTPS connections and that would take way too long to perfect in turing
Anyone wanna do it for me so I can continue my authentication process? |
|
|
|
|
|
Dan
|
Posted: Tue Apr 22, 2008 9:44 pm Post subject: RE:Help... Getting data from netstream through HTTPS connection? |
|
|
I acuatly tryed to make a MSN client in turing when i was in grade 10 or 11 as well. Once i found out it used HTTPS i gave up.
There are no turing libs or apis for dealing with HTTPS that i know of so your options are give up or make your own unfrontly.
You could try making a mysql lib for turing if you do have the network comands working. Also posting how you fixed them could be valuable to the comunity and maybe some day some one will try to deal with HTTPS. |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
|
octopi
|
Posted: Tue Apr 22, 2008 10:25 pm Post subject: Re: Help... Getting data from netstream through HTTPS connection? |
|
|
You could always setup a webserver with php (or other language) that acts as a gateway between turing and msn.
That way you could deal with straight http, and allow php to handle all the https stuff since there are already librarys for php https. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
LaZ3R
|
Posted: Wed Apr 23, 2008 1:54 pm Post subject: RE:Help... Getting data from netstream through HTTPS connection? |
|
|
I don't know PHP for crap anymore sadly, I used to know how to do some basic stuff with the language, but I haven't used it in many years now :p
I like the idea, however, the only language I currently know that I know how to use anything related to netstreams would be Turing
I'm not in the mood to learn another language at the same time as C++ ( for school right now ) . |
|
|
|
|
|
darkangel
|
Posted: Tue May 06, 2008 10:40 pm Post subject: Re: Help... Getting data from netstream through HTTPS connection? |
|
|
This would be sooo useful for me, both the image downloader and the encrypted stream!!!!
gah, im running into problems like these all the time now, i have a feeling that means that i should move onto a new language.
BUT the image downloader would be a huge help, not just for me but for the whole CompSci community. I highly recommend giving what you got, and who knows, you might get it done faster. |
|
|
|
|
|
|
|