|
I am trying to test out Brad Stone's GETURI software. I'd like to be
able to send and receive data (EDI files) with an HTTP server. As a
test I am trying to receive a file that is named readme.txt
(www.ediconsulting.com/readme.txt), but I receive a 406 error:
Display Physical File Member
File . . . . . . : GU001PF Library . . . . : QTEMP
Member . . . . . : GU001PF Record . . . . . : 1
Control . . . . . Column . . . . . : 1
Find . . . . . . .
*...+....1....+....2....+....3....+....4....+....5....+....6....+....7..
..+....8
HTTP/1.1 406 No acceptable objects were found Server:
Microsoft-IIS/5.0 Date:
Sun, 13 Oct 2002 13:43:32 GMT Content-Length: 3906 Content-Type:
text/html
<|DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <html dir=ltr>
<head
> <style> a:link {font:8pt/11pt verdana; color:FF0000} a:visited
{font:8pt
/11pt verdana; color:#4e4e4e} </style> <META NAME="ROBOTS"
CONTENT="NOINDEX"
> <title>The resource cannot be displayed</title> <META
HTTP-EQUIV="Conten
t-Type" Content="text-html; charset=Windows-1252"> </head> <script>
functi
on Homepage(){ <|-- // in real bits, urls get returned to our script
like this
: // res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm
//For te
sting use DocURL =
"res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar
.htm" DocURL=document.URL; //this is where the http or https
will be, as
found by searching for :// but skipping the res://
protocolIndex=DocURL.indexO
f("://",4); //this finds the ending slash for the domain server
serverIn
dex=DocURL.indexOf("/",protocolIndex + 3); //for the href, we need
a valid U
RL to the domain. We search for the # symbol to find the begining
//of the tr
ue URL, and add 1 to skip it - this is the BeginURL value. We use
serverIndex as
the end marker. //urlresult=DocURL.substring(protocolIndex -
4,serverIndex);
BeginURL=DocURL.indexOf("#",1) + 1;
urlresult=DocURL.substring(BeginURL,serv
Here is the command I am using. I am sure there is an error between the
keyboard and the chain, but I can not figure it out.
GETURI URI('www.ediconsulting.com/readme.txt')
I think it has something to do with context type, but I have tried may
different things, including */*. Anyone have any ideas?
cjg
Carl J. Galgano
EDI Consulting Services, Inc.
550 Kennesaw Avenue, Suite 800
Marietta, GA 30060
(770) 422-2995 - voice
(419) 730-8212 - fax
mailto:cgalgano@ediconsulting.com
http://www.ediconsulting.com
AS400 EDI, Networking, E-Commerce and Communications Consulting and
Implementation
http://www.icecreamovernight.com
Premium Ice Cream Brands shipped Overnight
"You ain't gonna learn what you don't want to know" - rw
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.