Solved

Winsock's Connect does not allow 'http://'?

Posted on 1998-11-23
7
190 Views
Last Modified: 2013-11-13
When trying to connect to remote sites with "http://" attached to the beginning of them winsock1.connect cannot resolve the host name/ip address. Is this another error in vb5? It only reports back an "Cannot Resolve Host" error.

Oh..and if it isn't any trouble could someone email the mswinsck.hlp file to qballme@yahoo.com...the books online is essentially the only help i can get on this topic. Everytime i hit F1 for help on winsock commands it says cant find the mswinsck.hlp file.  I've tried reinstalling to no prevail.
0
Comment
Question by:aniston
  • 3
  • 3
7 Comments
 

Author Comment

by:aniston
Comment Utility
Edited text of question
0
 
LVL 2

Accepted Solution

by:
evertd earned 10 total points
Comment Utility
Yes, that is correct!! http:// is the protocol not the host name!!
If you type in explorer http:// is makes a connection on port ? (23 or something) and if you type "ftp://" it makes a connection on port 21 that is the difference!!
So never type http:// in front of the adress.

The same problem excist if you type "ping http://www.microsoft.com" this is not a valid adress!! You have to type "ping www.microsoft.com"
0
 

Author Comment

by:aniston
Comment Utility
The strange part is that in the examples mentioned in Help it does show that you are allowed to include "http://" to calls to Connect or even setting the winsock1.remotehost="http://test.com" . I guess this was a mistake by the manual writers, albeit repeatedly used throughout. Thanks for the info.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 2

Expert Comment

by:evertd
Comment Utility
Yes, I think so!! But what is the difference betwee http://test.com and test.com!! The only difference is the port I think but you have to specify the port anyway!!
0
 
LVL 2

Expert Comment

by:evertd
Comment Utility
Yes, I think so!! But what is the difference betwee http://test.com and test.com!! The only difference is the port I think but you have to specify the port anyway!!
0
 

Author Comment

by:aniston
Comment Utility
Very good point...I guess my mind is being a little stubborn to adjust. I will make my modifications. I really appreciate you answering this mystery!
0
 

Expert Comment

by:jknickelbein
Comment Utility
http:// goes on port 80, btw
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now