Solved

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

Posted on 1998-11-23
7
219 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Windows Script Host (WSH) has been part of Windows since Windows NT4. Windows Script Host provides architecture for building dynamic scripts that consist of a core object model, scripting hosts, and scripting engines. The key components of Window…
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.
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.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

687 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