Solved

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

Posted on 1998-11-23
7
203 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
ID: 1446470
Edited text of question
0
 
LVL 2

Accepted Solution

by:
evertd earned 10 total points
ID: 1446471
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
ID: 1446472
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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
LVL 2

Expert Comment

by:evertd
ID: 1446473
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
ID: 1446474
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
ID: 1446475
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
ID: 1446476
http:// goes on port 80, btw
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show, step by step, how to integrate R code into a R Sweave document
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

809 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