📄 mailbox.txt
字号:
From - Fri Mar 09 22:47:36 2001
X-F: bookuser@mail.holdenweb.com Fri Mar 09 22:29:33 2001
From: <Dimitrie Agafitei>
To: <Steve Holden>
Subject: RE: Ping?
Date: Mon, 23 Oct 2000 13:18:57 -0500
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_NextPart_000_0179_01C07A3C.4C0B2880"
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-UIDL: 983853760
X-Mozilla-Status: 8011
X-Mozilla-Status2: 00000000
This is a multi-part message in MIME format.
------=_NextPart_000_0179_01C07A3C.4C0B2880
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
As a matter of fact I did. I've created a page called NextelTest.asp =
I've plece it at
http://www.gphone.com/webcallback/NextelTest.asp and told them to =
redirect their posting to that page. Based on session variables we count =
the hits from same post. I've asked him to test this, he did it and he =
said that there's no double posting and this is it.
You can test for yourself. =20
D
[SH] First of all, we need to ensure that three different submissions =
form the same page
can actually activate three scripts on the server. You will remember I =
had my doubts about
Nextel's code when I looked at it. In *theory*, is several instances of =
the web callback script
are triggered at the same time then yes, it is likely they will allocate =
the same DID.
Your observations impy this is what's happening.
So, what we appear to need is some kind of semaphore, so that we can =
make sure that
separate instances of the script mutually exclude each other from the =
portion of the code
which reads the DID directory and creates the file. I don't know =
whether such mechanisms
are available form VBScript, but I suspect not. Maybe we'll have to =
re-write in Python :-)
=20
------=_NextPart_000_0179_01C07A3C.4C0B2880
Content-Type: text/html;
name="CALLBA~1.HTM"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="CALLBA~1.HTM"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from =
url=3D(0066)http://www.nextel.com/specialoffer/mypoints/nex_callme/callme=
.html -->
<HTML><HEAD><TITLE>Callback Service</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<SCRIPT language=3DJavaScript>=0A=
<!--=0A=
=0A=
var pUSPhone =3D "10-digit U.S. phone number (like 415 555 1212)."=0A=
var iUSPhone =3D "This field must be a 10-digit U.S. phone number (like =
415 555 1212). Please re-enter it now."=0A=
// U.S. phone numbers have 10 digits.=0A=
// They are formatted as 123 456 7890 or (123) 456-7890.=0A=
var digitsInUSPhoneNumber =3D 10;=0A=
var digits =3D "0123456789";=0A=
// non-digit characters which are allowed in phone numbers=0A=
var phoneNumberDelimiters =3D "()- .";=0A=
// characters which are allowed in US phone numbers=0A=
var validUSPhoneChars =3D digits + phoneNumberDelimiters;=0A=
=0A=
var defaultEmptyOK =3D false=0A=
=0A=
// isInteger( string )=0A=
function isInteger (s)=0A=
{ var i;=0A=
=0A=
if (isEmpty(s))=0A=
if (isInteger.arguments.length =3D=3D 1) return defaultEmptyOK;=0A=
else return (isInteger.arguments[1] =3D=3D true);=0A=
=0A=
// Search through string's characters one by one=0A=
// until we find a non-numeric character.=0A=
// When we do, return false; if we don't, return true.=0A=
=0A=
for (i =3D 0; i < s.length; i++){=0A=
// Check that current character is number.=0A=
var c =3D s.charAt(i);=0A=
=0A=
if (!isDigit(c)) return false;=0A=
}=0A=
=0A=
// All characters are numbers.=0A=
return true;=0A=
}=0A=
=0A=
// Returns true if character c is a digit=0A=
// (0 .. 9).=0A=
function isDigit (c)=0A=
{ return ((c >=3D "0") && (c <=3D "9"))=0A=
}=0A=
=0A=
// Notify user that contents of field theField are invalid.=0A=
// String s describes expected contents of theField.value.=0A=
// Put select theField, pu focus in it, and return false.=0A=
=0A=
function warnInvalid (theField, s)=0A=
{ theField.focus()=0A=
theField.select()=0A=
alert(s)=0A=
return false=0A=
}=0A=
=0A=
// isUSPhoneNumber (STRING s [, BOOLEAN emptyOK])=0A=
//=0A=
function isUSPhoneNumber (s)=0A=
{ if (isEmpty(s))=0A=
if (isUSPhoneNumber.arguments.length =3D=3D 1) return =
defaultEmptyOK;=0A=
else return (isUSPhoneNumber.arguments[1] =3D=3D true);=0A=
return (isInteger(s) && s.length =3D=3D digitsInUSPhoneNumber)=0A=
}=0A=
=0A=
function stripCharsInBag (s, bag)=0A=
=0A=
{ var i;=0A=
var returnString =3D "";=0A=
=0A=
// Search through string's characters one by one.=0A=
// If character is not in bag, append to returnString.=0A=
=0A=
for (i =3D 0; i < s.length; i++)=0A=
{=0A=
// Check that current character isn't whitespace.=0A=
var c =3D s.charAt(i);=0A=
if (bag.indexOf(c) =3D=3D -1) returnString +=3D c;=0A=
}=0A=
=0A=
return returnString;=0A=
}=0A=
=0A=
=0A=
// Check whether string s is empty.=0A=
=0A=
function isEmpty(s)=0A=
{ return ((s =3D=3D null) || (s.length =3D=3D 0))=0A=
}=0A=
=0A=
=0A=
// checkUSPhone (TEXTFIELD theField [, BOOLEAN emptyOK=3D=3Dfalse])=0A=
//=0A=
// Check that string theField.value is a valid US Phone.=0A=
//=0A=
// For explanation of optional argument emptyOK,=0A=
// see comments of function isInteger.=0A=
function checkUSPhone (theField, emptyOK)=0A=
{ if (checkUSPhone.arguments.length =3D=3D 1) emptyOK =3D =
defaultEmptyOK;=0A=
if ((emptyOK =3D=3D true) && (isEmpty(theField.value))) return true;=0A=
else=0A=
{ var normalizedPhone =3D stripCharsInBag(theField.value, =
phoneNumberDelimiters)=0A=
if (!isUSPhoneNumber(normalizedPhone, false))=0A=
return warnInvalid (theField, iUSPhone);=0A=
else=0A=
{ // if you don't want to reformat as (123) 456-789, comment =
next line out=0A=
theField.value =3D normalizedPhone=0A=
return true;=0A=
}=0A=
}=0A=
}=0A=
=0A=
function validate(form){=0A=
if( checkUSPhone(form.Number,false)){=0A=
form.submit();=0A=
return true;=0A=
}=0A=
return false;=0A=
}=0A=
=0A=
function submit_form(form){=0A=
form.submit();=0A=
}=0A=
=0A=
//-->=0A=
</SCRIPT>
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR></HEAD>
<BODY bgColor=3D#ffffff>
<FORM name=3DTelephoneCall onsubmit=3D"return validate(this)"=20
action=3Dhttp://www.gphone.com/webcallback/NextelTest.asp method=3Dpost =
target=3Dresult>
<TABLE height=3D250 cellSpacing=3D0 cellPadding=3D0 width=3D240 =
border=3D0>
<TBODY>
<TR>
<TD colSpan=3D2><IMG height=3D36 src=3D"Callback =
Service_files/nex_logo.gif"=20
width=3D250></TD></TR>
<TR>
<TD width=3D10 rowSpan=3D2> </TD>
<TD width=3D230><FONT face=3D"Arial, Helvetica, sans-serif" =
size=3D1><B>Complete=20
and submit – 6:00 a.m. to 10:00 p.m. Eastern Time, 7 days a =
week. A Nextel=20
Representative will call you.</B></FONT></TD></TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -