<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5902&amp;view=findpost&amp;p=66624</guid>
        <pubDate>Sun, 09 Mar 2003 07:42:36 +0000</pubDate>
        <title>использование internetConnect</title>
        <link>https://forum.sources.ru/index.php?showtopic=5902&amp;view=findpost&amp;p=66624</link>
        <description><![CDATA[komrad: кто нибудь знает пример?]]></description>
        <author>komrad</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5902&amp;view=findpost&amp;p=66622</guid>
        <pubDate>Sat, 08 Mar 2003 21:02:03 +0000</pubDate>
        <title>использование internetConnect</title>
        <link>https://forum.sources.ru/index.php?showtopic=5902&amp;view=findpost&amp;p=66622</link>
        <description><![CDATA[x2er0: <div class='tag-quote'><span class='tag-quote-prefix'>Цитата</span> <span class='tag-quote__quote-info'>komrad, 08.03.03, 16:58:32</span><div class='quote '>КАК ЮЗАТЬ InternetConnect??!<br>В смысле чё писать в скобках нада?</div></div><br><div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">&#60;br&#62;Битте:&#60;br&#62;InternetConnect&#60;br&#62;HINTERNET InternetConnect(&#60;br&#62; &nbsp; &nbsp;IN HINTERNET hInternetSession,&#60;br&#62; &nbsp; &nbsp;IN LPCSTR lpszServerName,&#60;br&#62; &nbsp; &nbsp;IN INTERNET_PORT nServerPort,&#60;br&#62; &nbsp; &nbsp;IN LPCSTR lpszUsername,&#60;br&#62; &nbsp; &nbsp;IN LPCSTR lpszPassword,&#60;br&#62; &nbsp; &nbsp;IN DWORD dwService,&#60;br&#62; &nbsp; &nbsp;IN DWORD dwFlags,&#60;br&#62; &nbsp; &nbsp;IN DWORD dwContext&#60;br&#62;);&#60;br&#62;&#60;br&#62;Opens an FTP, Gopher, or HTTP session for a given site. &#60;br&#62;&#60;br&#62;Returns a valid handle to the FTP, Gopher, or HTTP session if the connection is successful, or NULL otherwise. To get extended error information, callGetLastError. An application can also use InternetGetLastResponseInfo to determine why access to the service was denied. &#60;br&#62;hInternetSession &#60;br&#62;Handle to the current Internet session. The handle must have been returned by a previous call to InternetOpen. &#60;br&#62;lpszServerName &#60;br&#62;Address of a null-terminated string that contains the host name of an Internet server. Alternately, the string can contain the IP number of the site in ASCII dotted-decimal format (for example, 11.0.1.45). &#60;br&#62;nServerPort &#60;br&#62;Number of the TCP/IP port on the server to connect to. Can be one of the values in the following list. These flags set only the port that will be used. The service is set by the value of dwService. INTERNET_DEFAULT_FTP_PORT &nbsp;Uses the default port for FTP servers (port 21). &#60;br&#62;INTERNET_DEFAULT_GOPHER_PORT &nbsp;Uses the default port for Gopher servers (port 70). &#60;br&#62;INTERNET_DEFAULT_HTTP_PORT &nbsp;Uses the default port for HTTP servers (port 80). &#60;br&#62;INTERNET_DEFAULT_HTTPS_PORT &nbsp;Uses the default port for HTTPS servers (port 443). &#60;br&#62;INTERNET_DEFAULT_SOCKS_PORT &nbsp;Uses the default port for SOCKS firewall servers (port 1080). &#60;br&#62;INTERNET_INVALID_PORT_NUMBER &nbsp;Uses the default port for the service specified by dwService. &#60;br&#62;&#60;br&#62;lpszUsername &#60;br&#62;Address of a null-terminated string that contains the name of the user to log on. If this parameter is NULL, the function uses an appropriate default, except for HTTP; a NULL parameter in HTTP causes the server to return an error. For the FTP protocol, the default is &quot;anonymous&quot;. &#60;br&#62;lpszPassword &#60;br&#62;Address of a null-terminated string that contains the password to use to log on. If both lpszPassword and lpszUsername are NULL, the function uses the default &quot;anonymous&quot; password. In the case of FTP, the default password is the user&#39;s e-mail name. If lpszPassword is NULL, but lpszUsername is not NULL, the function uses a blank password. The following table describes the behavior for the four possible settings of lpszUsername and lpszPassword. lpszUsername &nbsp;lpszPassword &nbsp;User name sent to FTP server &nbsp;Password sent to FTP server &nbsp;&#60;br&#62;NULL NULL &quot;anonymous&quot; User&#39;s e-mail name &#60;br&#62;Non-NULL string NULL lpszUsername &quot;&quot; &#60;br&#62;NULL Non-NULL string ERROR ERROR &#60;br&#62;Non-NULL string Non-NULL string lpszUsername lpszPassword &#60;br&#62;&#60;br&#62;dwService &#60;br&#62;Type of service to access. Can be one of the following values: INTERNET_SERVICE_FTP &nbsp;FTP service. &#60;br&#62;INTERNET_SERVICE_GOPHER &nbsp;Gopher service. &#60;br&#62;INTERNET_SERVICE_HTTP &nbsp;HTTP service. &#60;br&#62;&#60;br&#62;dwFlags &#60;br&#62;Flags specific to the service used. When the value of dwService is INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE causes the application to use passive FTP semantics. &#60;br&#62;dwContext &#60;br&#62;Application-defined value that is used to identify the application context for the returned handle in callbacks. &#60;br&#62;The InternetConnect function is required before communicating with any Internet service. &#60;br&#62;&#60;br&#62;Having a connect function for all protocols, even those that do not use persistent connections, lets an application communicate common information about several requests by using a single function call. In addition, this allows for future versions of Internet protocols that do not require a connection to be established for every client request. &#60;br&#62;&#60;br&#62;For FTP sites, InternetConnect actually establishes a connection with the server; for others, such as Gopher, the actual connection is not established until the application requests a specific transaction. &#60;br&#62;&#60;br&#62;For maximum efficiency, applications using the Gopher and HTTP protocols should try to minimize calls to InternetConnect and avoid calling this function for every transaction requested by the user. One way to accomplish this is to keep a small cache of handles returned from InternetConnect; when the user makes a request to a previously accessed server, that session handle is still available. &#60;br&#62;&#60;br&#62;An application that needs to display multiline text information sent by an FTP server can use InternetGetLastResponseInfo to retrieve the text. &#60;br&#62;&#60;br&#62;For FTP connections, if lpszUsername is NULL, InternetConnect sends the string &quot;anonymous&quot; as the user name. If lpszPassword is NULL, InternetConnect attempts to use the user&#39;s e-mail name as the password. &#60;br&#62;&#60;br&#62;To close the handle returned from InternetConnect, the application should call InternetCloseHandle. This function disconnects the client from the server and frees all resources associated with the connection. &#60;br&#62;</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script>]]></description>
        <author>x2er0</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5902&amp;view=findpost&amp;p=66621</guid>
        <pubDate>Sat, 08 Mar 2003 14:47:33 +0000</pubDate>
        <title>использование internetConnect</title>
        <link>https://forum.sources.ru/index.php?showtopic=5902&amp;view=findpost&amp;p=66621</link>
        <description><![CDATA[Song: Параметры, вероятно.]]></description>
        <author>Song</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=5902&amp;view=findpost&amp;p=66619</guid>
        <pubDate>Sat, 08 Mar 2003 13:58:32 +0000</pubDate>
        <title>использование internetConnect</title>
        <link>https://forum.sources.ru/index.php?showtopic=5902&amp;view=findpost&amp;p=66619</link>
        <description><![CDATA[komrad: КАК ЮЗАТЬ InternetConnect??!<br>В смысле чё писать в скобках нада?]]></description>
        <author>komrad</author>
        <category>Delphi: Общие вопросы</category>
      </item>
	
      </channel>
      </rss>
	