Cannot Connect
[1/11] from: ammoncooke:y:ahoo at: 31-Aug-2001 11:21
Hi,
Out of the blue REBOL will not connect, I totally deleted rebol, downloaded a fresh copy,
& installed it. Still no go. When it attempts to connect to the internet the connecting...
thing flashes down in left hand corner, which is wierd because it usually stays there
showing the status. I am not using a proxy server nor have I ever.
Your help is appreciated.
Thanks!!
Ammon
[2/11] from: tim:johnsons-web at: 31-Aug-2001 10:58
On Fri, Aug 31, 2001 at 11:21:02AM -0700, Ammon Cooke wrote:
> Hi,
>
> Out of the blue REBOL will not connect, I totally deleted rebol, downloaded a fresh
copy, & installed it. Still no go. When it attempts to connect to the internet the
connecting... thing flashes down in left hand corner, which is wierd because it usually
stays there showing the status. I am not using a proxy server nor have I ever.
>
> Your help is appreciated.
From your headers, it looks like you're on Windows. Are you
using /view (sorry I don't) or /core?
Where is user.r?
Or, are you using set-net directly from your script?
If not, try that.....
Where is your read/write dir? I.E. Sometimes windows configs will
force
a default read to somewhere else than the current directory.
> Thanks!!
> Ammon
>
> --
> To unsubscribe from this list, please send an email to
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.johnsons-web.com
[3/11] from: ammoncooke:yaho:o at: 31-Aug-2001 12:28
Hi,
It logs in as the proper user, the odd part is the little progress meter
down in the left hand window pops up then disappears while REBOL attempts to
continue connecting. After I have used set-net at the command prompt what do
I do?
Thanks!!
Ammon
----- Original Message -----
From: "Tim Johnson" <[tim--johnsons-web--com]>
To: <[rebol-list--rebol--com]>
Sent: Friday, August 31, 2001 11:58 AM
Subject: [REBOL] Re: Cannot Connect
> On Fri, Aug 31, 2001 at 11:21:02AM -0700, Ammon Cooke wrote:
> >
> > Hi,
> >
> > Out of the blue REBOL will not connect, I totally deleted rebol,
downloaded a fresh copy, & installed it. Still no go. When it attempts to
connect to the internet the connecting... thing flashes down in left hand
corner, which is wierd because it usually stays there showing the status. I
am not using a proxy server nor have I ever.
[4/11] from: tim:johnsons-web at: 31-Aug-2001 11:59
On Fri, Aug 31, 2001 at 12:28:43PM -0700, Ammon Cooke wrote:
> Hi,
>
> It logs in as the proper user, the odd part is the little progress meter
> down in the left hand window pops up then disappears while REBOL attempts to
> continue connecting. After I have used set-net at the command prompt what do
> I do?
Hmmm! Why don't you try this script below. Edit the strings following
my-email/from, my-email/server, my-email/to
try trace if you like. I find that starting with something very basic
at first helps......
REBOL[]
my-email: [from "[sender--domain--com]" server "smtp.somewhere.net"
to "[recipeint--domain--com]" subject "testing simple SMTP"]
;;=====================================================================================
;;sendmail: arg1 is block with 'sender 'server 'to 'subject
;; arg2 is message body
;;=====================================================================================
sendmail: func[setup[block!] message[string!]][
; try using trace
;trace on
set-net[setup/from setup/server none none none none]
;trace off
send/header to-email setup/to message make system/standard/email[
from: setup/from
subject: setup/subject
]
];end func
sendmail my-email "Hi, we're just testing here"
[5/11] from: tim:johnsons-web at: 31-Aug-2001 12:06
Ammon, I got ahead of myself here, here's a couple more tips.
If you run into problems with the script below, and choose to
use 'trace AND if you are set up for CGI from your desktop,
put in a mime-text header and preformat tag, that way you you
might get a better look at the very verbose trace output,
see changes below
On Fri, Aug 31, 2001 at 12:28:43PM -0700, Ammon Cooke wrote:
> Hi,
>
> It logs in as the proper user, the odd part is the little progress meter
> down in the left hand window pops up then disappears while REBOL attempts to
> continue connecting. After I have used set-net at the command prompt what do
> I do?
Hmmm! Why don't you try this script below. Edit the strings following
my-email/from, my-email/server, my-email/to
try trace if you like. I find that starting with something very basic
at first helps......
REBOL[]
my-email: [from "[sender--domain--com]" server "smtp.somewhere.net"
to "[recipeint--domain--com]" subject "testing simple SMTP"]
;;=====================================================================================
;;sendmail: arg1 is block with 'sender 'server 'to 'subject
;; arg2 is message body
;;=====================================================================================
sendmail: func[setup[block!] message[string!]][
; set mime-type for CGI
print "Content-Type: text/html^/"
; set preformat for easier reading
print "<pre>"
; try using trace : just uncomment
;trace on
set-net[setup/from setup/server none none none none]
;trace off
;trace one
send/header to-email setup/to message make system/standard/email[
from: setup/from
subject: setup/subject
]
;trace off
];end func
sendmail my-email "Hi, we're just testing here"
[6/11] from: ammoncooke:yah:oo at: 31-Aug-2001 14:17
Hi this script opens a console & prints:
Content-Type: text/html
<pre>
Thanks!!
Ammon
[7/11] from: ammoncooke:yaho:o at: 31-Aug-2001 14:22
I changed the smtp server & it works now. I think View is having trouble
because scripts that access the web don't have a problem doing so.
Thanks!!
Ammon
[8/11] from: tim:johnsons-web at: 31-Aug-2001 13:46
On Fri, Aug 31, 2001 at 02:22:33PM -0700, Ammon Cooke wrote:
> I changed the smtp server & it works now. I think View is having trouble
> because scripts that access the web don't have a problem doing so.
It is highly likely that you will need to use different smtp
servers, depending on what machine you are sending email from.
In most cases, ISP's don't allow rerouting. For instance,
if I am testing from my own machine, I have to use smtp.gci.net.
If the finished product is running on my domain, then my cgi
program must use postoffice.cniweb.net.
I automate this by testing the first octet in system/options/cgi/remote-addr
I can be fairly certain that if I am testing on my machine, I will
find one of the following as the first octet:
private-octets: [192 10 172 127]
;thus:
if find private-octets pick to-tuple system/options/cgi/remote-addr 1
[testing: true]
I believe that the elements in 'private-octets are inclusive of
any reserved for private networks and loop-backs. If I'm
wrong - please somebody tell me! :>)
And of course, all assumptions above are based on sending
email from a CGI program.
Tim
> Thanks!!
> Ammon
<<quoted lines omitted: 58>>
> [rebol-request--rebol--com] with "unsubscribe" in the
> subject, without the quotes.
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.johnsons-web.com
[9/11] from: ammoncooke::yahoo at: 31-Aug-2001 15:22
i still cannot get View to connect. don't know what is wrong it seems to be
the latest version that is having trouble, because it does the same thing on
anothe computer in my network.
Thanks!!
Ammon
[10/11] from: tim:johnsons-web at: 31-Aug-2001 14:28
On Fri, Aug 31, 2001 at 03:22:14PM -0700, Ammon Cooke wrote:
> i still cannot get View to connect. don't know what is wrong it seems to be
> the latest version that is having trouble, because it does the same thing on
> anothe computer in my network.
I am really sorry to hear that. I'm not familiar with /view at all.
It must be a time zone thing..... but participation on this list
increases "later" in the day. You might try reposting your
problem with a different title, that way it will look
fresh
, and some of the more experienced rebollers
will hopefully be reading it.
Good luck
tim
[11/11] from: ammoncooke::yahoo::com at: 31-Aug-2001 15:57
Thanks!!
Ammon
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted