This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
91
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 28, 2009, 07:06:49 PM »
Hi Rob,
You're welcome. I'm not certain why you had a GPF, I have it in a mulit-DLL NTWS without problem.
Larry Sand
You're welcome. I'm not certain why you had a GPF, I have it in a mulit-DLL NTWS without problem.
Larry Sand
92
Web Server - Ask For Help / Re: How to modify the white "Page not found"
« on: August 26, 2009, 07:27:09 PM »
Mike,
You can override the error page in the myServer.MakeErrorPage() method.
Larry Sand
You can override the error page in the myServer.MakeErrorPage() method.
Larry Sand
93
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 26, 2009, 07:22:24 PM »
Hi Rob,
It's not a kludge, this kind of signature is fairly common. For example Amazon market place web services uses HMAC SHA1 or SHA256. Here's a good description: http://mws.amazon.com/docs/devGuide/index.html?Signatures.html
Larry Sand
It's not a kludge, this kind of signature is fairly common. For example Amazon market place web services uses HMAC SHA1 or SHA256. Here's a good description: http://mws.amazon.com/docs/devGuide/index.html?Signatures.html
Larry Sand
94
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 26, 2009, 07:24:51 AM »
Hi Bruce and Rob,
It's not that there's anything wrong with the NetTalk implementation of the MD5 hash, it's just that the HMAC is different.
In the attached example program:
Create a public key with the button, enter a secret value for both the client and server. They both use the same public key to create a HMAC of the secret value. Then if both HMACs match, the same secret value was used to create the HMAC with the public key.
HTH
Larry Sand
[attachment deleted by admin]
It's not that there's anything wrong with the NetTalk implementation of the MD5 hash, it's just that the HMAC is different.
In the attached example program:
Create a public key with the button, enter a secret value for both the client and server. They both use the same public key to create a HMAC of the secret value. Then if both HMACs match, the same secret value was used to create the HMAC with the public key.
HTH
Larry Sand
[attachment deleted by admin]
95
Web Server - Ask For Help / Re: Ajax update does not refresh client when Button URL contains parameters IE only
« on: August 25, 2009, 10:22:40 AM »
Hi Bruce,
Thanks, 4.37 fixes this problem.
Larry
Thanks, 4.37 fixes this problem.
Larry
96
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 25, 2009, 06:02:54 AM »
Hi Rob,
Is the HMAC Hex encoded? I wrote a function using the MS Crypto API to calculate the HEX HMAC MD5, you just pass it the hex md5 key, and msg to hash with that key and it returns the hex encoded HMAC. I could give you a lib to link into your program if you'd like.
Larry Sand
Is the HMAC Hex encoded? I wrote a function using the MS Crypto API to calculate the HEX HMAC MD5, you just pass it the hex md5 key, and msg to hash with that key and it returns the hex encoded HMAC. I could give you a lib to link into your program if you'd like.
Larry Sand
97
Web Server - Ask For Help / Re: Ajax update does not refresh client when Button URL contains parameters IE only
« on: August 24, 2009, 06:35:16 AM »
Thanks Bruce, Any idea when 4.37 will be released?
Larry Sand
Larry Sand
98
Web Server - Ask For Help / Re: HMAC MD-5 Encoding
« on: August 24, 2009, 06:32:57 AM »
Bruce,
The HMAC just uses MD5 as it's hash algorithm. http://en.wikipedia.org/wiki/HMAC describes it well. Also there are different methods used to encode them, Hex, Base64 maybe others.
Rob do you need it in the client or the Server? Here's a JavaScript implementation for the client: http://pajhome.org.uk/crypt/md5/instructions.html
Larry Sand
The HMAC just uses MD5 as it's hash algorithm. http://en.wikipedia.org/wiki/HMAC describes it well. Also there are different methods used to encode them, Hex, Base64 maybe others.
Rob do you need it in the client or the Server? Here's a JavaScript implementation for the client: http://pajhome.org.uk/crypt/md5/instructions.html
Larry Sand
99
Web Server - Ask For Help / Ajax update does not refresh client when Button URL contains parameters IE only
« on: August 14, 2009, 11:41:42 AM »
If you add a Button of Type Other, with properties Type=Other (not submit) to a page loaded browse row. The presence of a parameter in the URL cause the contents of the browse to not display after pressing the Next/Previous buttons. The busy.gif stays displayed and if you refresh the browser the correct page is displayed. I hand coded the URL to narrow it down to the presence of a parameter because for IE you're adding the __Referer__ to the JavaScript 0pen.window() call.
I've modified the MailboxesBrowseControl procedure of the web2.app (attached) to illustrate the problem. To see it, go to the Mailboxes and press "Next". The Ajax response contains the code for the next page, it's just not displayed.
Thanks,
Larry
[attachment deleted by admin]
I've modified the MailboxesBrowseControl procedure of the web2.app (attached) to illustrate the problem. To see it, go to the Mailboxes and press "Next". The Ajax response contains the code for the next page, it's just not displayed.
Thanks,
Larry
[attachment deleted by admin]
100
Web Server - Ask For Help / Re: No http headers returned in IE with click on browse
« on: August 14, 2009, 06:14:20 AM »
>> HTTP/1.0 200 This buggy server did not return headers
Hehe, I thought you might like that error msg. There are some funny ones in there. The protocol checking of this proxy is great. It pointed out an error that I had in a webservice client in my calculation of the content length.
I made the changes and can confirm that fixes the problem.
Thanks much,
Larry
Hehe, I thought you might like that error msg. There are some funny ones in there. The protocol checking of this proxy is great. It pointed out an error that I had in a webservice client in my calculation of the content length.
I made the changes and can confirm that fixes the problem.
Thanks much,
Larry
101
Web Server - Ask For Help / No http headers returned in IE with click on browse
« on: August 13, 2009, 12:16:30 PM »
When running Fiddler with IE and you click on a browse line with highlighting as the selection method fiddler pops and error message:
Fiddler has detected a protocol violation in session #1.
The Server did not return properly formatted HTTP Headers. Maybe missing altogether (e.g. HTTP/0.9), maybe only \r\r instead of \r\n\r\n?
----------------
This was using example 47 and NT 4.36 and it does not occur on FireFox. I tested in IE 6, 7, and 8.
Here are the headers:
Request
===============
GET /mailboxesbrowsecontrol?&_ParentProc=&_Clicked=1&id=MAI:MailBoxNumber&Value=2&_rnd_=0.4852343367848425&_= HTTP/1.1
Accept: */*
Accept-Language: en-us
x-prototype-version: 1.4.0
Referer: http://192.168.67.85:81/index.htm
x-requested-with: XMLHttpRequest
x-rico-version: 1.1.0
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM
Host: 192.168.10.85:81
Connection: Keep-Alive
Cookie: SESSIONID=1969143644
Response
===============
HTTP/1.0 200 This buggy server did not return headers
Larry
Fiddler has detected a protocol violation in session #1.
The Server did not return properly formatted HTTP Headers. Maybe missing altogether (e.g. HTTP/0.9), maybe only \r\r instead of \r\n\r\n?
----------------
This was using example 47 and NT 4.36 and it does not occur on FireFox. I tested in IE 6, 7, and 8.
Here are the headers:
Request
===============
GET /mailboxesbrowsecontrol?&_ParentProc=&_Clicked=1&id=MAI:MailBoxNumber&Value=2&_rnd_=0.4852343367848425&_= HTTP/1.1
Accept: */*
Accept-Language: en-us
x-prototype-version: 1.4.0
Referer: http://192.168.67.85:81/index.htm
x-requested-with: XMLHttpRequest
x-rico-version: 1.1.0
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; WOW64; Trident/4.0; SLCC1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.5.21022; .NET CLR 3.5.30729; .NET CLR 3.0.30729; MS-RTC LM
Host: 192.168.10.85:81
Connection: Keep-Alive
Cookie: SESSIONID=1969143644
Response
===============
HTTP/1.0 200 This buggy server did not return headers
Larry