[[https://www.revelation.com/|Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community]] ==== GetWebPage - error SOCK102 (OpenInsight 32-bit Specific) ==== === At 13 MAY 2005 10:04:55AM Wilhelm Schmitt wrote: === {{tag>"OpenInsight 32-bit Specific"}} How do I include the port number in a URL called through the GetWebPage function? The call to getwebpage("http://www.xyz.com") resolves but getwebpage("http://xyz.com:12345")returns the error SOCK102: Unable to resolve host DNS entry. Both are supposed to be valid URLs. Regards Wilhelm ---- === At 17 MAY 2005 08:43AM Bob Carten wrote: === Wilhelm The 7.1.1 version of getwebpage does not parse out the port. I will fix that for the next version In the meantime, try Subroutine test_ole_getwebpage(url) /* ** Ole retrieval of web pages ** url should be fully qualified, e.g. http://www.revelation.com ** Requires OI 7.1, WinXP SP1, Win2k SP3 or Win2003 server ** ** see http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winhttp/http/retrieving_data_using_script.asp ** rjc 05-17-05 Created */ $Insert Logical if assigned(url) else url=' if len(url) else return '' end WinHttpReq=OleCreateInstance('WinHttp.WinHttpRequest.5.1') // Create an HTTP request. ret=OleCallMethod(WinHttpReq, 'Open',"GET", URL, false$); // Send the HTTP request. ret=OleCallMethod(WinHttpReq, 'Send') // Retrieve the response text. html=OleGetProperty(WinHttpReq, 'ResponseText') return html [[https://www.revelation.com/revweb/oecgi4p.php/O4W_HANDOFF?DESTN=O4W_RUN_FORM&INQID=NONWORKS_READ&SUMMARY=1&KEY=A28BCFF7567F3B3C85257000004D5AD6|View this thread on the forum...]]