發新話題
打印

Stockia 0.66 (忙裡偷閒專用即時報價) 24-NOV-08 更新

引用:
原帖由 andyaska 於 2008-4-7 17:21 發表 哦哦.. 明白了... 您真的有 Proxy Password, 我有方法給您試試您在IE中的PROXY裡, 有一個是HOST, 一個是PORT, 您試試在 HOST 裡輸入 http://username:password@ip 看看能不能我的是 Delphi, 所以 .NET  ...
不行, 差點連 ie 也上不了網, 檢查發現 password@ip 自動輸入了在 port 那處,
可能是 ":" 後的東西被應作port 設定...

TOP

引用:
原帖由 ivanyung 於 2008-4-7 17:36 發表 不行, 差點連 ie 也上不了網, 檢查發現 password@ip 自動輸入了在 port 那處, 可能是 ":" 後的東西被應作port 設定...
那個... 因為您的版本還未考慮到 username:password 這部份, 不過我連上去時用的實際不是用那個, 而是由 http:// 以後的 string

正常這樣改完都應該不會連IE都上不到網 @@ 因為只是內置了 username & password 而已, 不過 IE7 好像會自動移除的樣子...

差不多收工了, 您也不能再試了吧 ^^' 本來想說我先在程式內內置左您個 username & password 再給您試試, 今晚加個 inputbox 給您自己輸入 proxy 明天試試 ^^'

[ 本帖最後由 andyaska 於 2008-4-7 18:20 編輯 ]

TOP

引用:
原帖由 andyaska 於 2008-4-7 17:53 發表 那個... 因為您的版本還未考慮到 username:password 這部份, 不過我連上去時用的實際不是用那個, 而是由 http:// 以後的 string正常這樣改完都應該不會連IE都上不到網 @@ 因為只是內置了 username & passwo ...
andy 兄很熱心呀...

TOP

引用:
原帖由 ivanyung 於 2008-4-7 22:15 發表 andy 兄很熱心呀...
0.07 在 TrayIcon 中加入了 Proxy Configuration, 按照 Format 2 的方法輸入明天在公司試試 ^^'

[ 本帖最後由 andyaska 於 2008-4-8 02:41 編輯 ]

TOP

好似唔錯, thanks for your share !~

TOP

2008-04-08 Version 0.07a
- 修正自動升級失敗的問題 (若有人出現 stockia.exe 檔案大小 0 的話請重新下載)

2008-04-08 Version 0.07
+ 加入 Micro 及 Tiny 兩款爾細小的顯示款式,可以於 Panel View -> Style 中設置
- 修正自動 Proxy 及為需要登入的使用者增加 Proxy Configuration 來設定 Proxy 密碼 (BETA TESTING)
* 由於之前的老闆鍵過於容易與其他程式有衝突,老闆鍵更改為 CTRL+ALT+F8

[ 本帖最後由 andyaska 於 2008-4-8 03:18 編輯 ]

TOP

測試了, 還是不行, 不會是系統管理員的 id 和 password 吧 ...

TOP

引用:
原帖由 ivanyung 於 2008-4-8 09:20 發表 測試了, 還是不行, 不會是系統管理員的 id 和 password 吧 ...
您登入ISA的密碼是您的登入網域(DOMAIN)的密碼吧...

給您試試這個... 用了另一種方法完全忽略 Proxy 設定... 不知行不行... 可以不用理會 Proxy Config.

http://andy.hk/~andy/temp/stockia.exe

[ 本帖最後由 andyaska 於 2008-4-8 09:29 編輯 ]

TOP

引用:
原帖由 andyaska 於 2008-4-8 09:27 發表 您登入ISA的密碼是您的登入網域(DOMAIN)的密碼吧...給您試試這個... 用了另一種方法完全忽略 Proxy 設定... 不知行不行... 可以不用理會 Proxy Config.http://andy.hk/~andy/temp/stockia.exe
還是不行...

先前自行安裝 firefox, 打入 proxy 設定也不行, 要用匯入 ie setting 才 okay ...
有幫助嗎?

先前我找 vb 的 solution 也試了2個多星期...
這個問題相信有一段時間才能 solve ...
先做你想添加的功能吧...
我這邊再找找看有沒有 pascal 跟 vb 的語法比較 ... 這樣可能比較省時...
但可恨是我不會 pascal ...

TOP

http://www.delphi3000.com/articles/article_1434.asp?SK=

找到了一個...
引用:
{
To add proxy authentication support you must:

  1. Have a proxy username and password (strings)
  2. Merge these strings with a ':' between as:

       totalString := UserName + ':' + PassWord

  3. Base-64 encode totalString
  4. On the OnAboutToSend event of the NMHTTP, add

     'Proxy-authorization: ' + totalString

     to the http header

The routine below encodes the Proxy username/password
to a string accepted by the proxy
}

uses Forms,Classes,NMUUE; // Don't forget these !

function EncodeAuth(username, password: string): string;
var uu: TNMUUProcessor;
  si, so: TStringStream;
  decoded: string;
  encoded: string;
begin
  decoded := username+':'+password; // Username:Password
  SetLength(encoded, 20 * length(decoded)); // Estimate len
  uu := TNMUUProcessor.Create(Application); // UU Processor
  si := TStringStream.Create(decoded); // Input
  so := TStringStream.Create(encoded); // Output
  uu.InputStream := si;
  uu.OutputStream := so;
  uu.Method := uuMime;
  uu.Encode; // Decode
  result := so.ReadString(255); // Read Result
  result := copy(result, 1, pos(#13, result) - 1); // No CRLF
  si.free; // Free objects
  so.free;
  uu.free;
end;

{
The OnAboutToSend event on the NMHTTP should look like:
}

procedure TForm1.NMHTTP1AboutToSend(Sender: TObject);
begin
  if username <> '' then
    NMHTTP1.SendHeader.Insert(2, 'Proxy-authorization: ' +
      EncodeAuth(username, password));
end;

{
We are inserting the Proxy-authorization token
to the 3rd position as it is a valid position to
place it
}

TOP

andy 兄幾好用thx不過點解我只可開一隻股價

TOP

Thx for share~

TOP

發新話題
eXTReMe Tracker