Sign up on the Revelation Software website to have access to the most current content, and to be able to ask questions and get answers from the Revelation community

At 13 NOV 2000 11:07:47AM Jackie Jones wrote:

I need HELP figuring out how to emulate a login from my customer.


The customer says:

Example code of posted values sent to the supplier in a hidden form in the HTML at catalog access:


So what I'm trying to do is emulate this so I can test my stuff

and not sound totally ignorant when I talk to these guys for testing.

So I thought I'd put the following html document into my Sambar42 docs

directory, and from the internet, just run http://www.oursite.com/ct1


Customer Login Test

This is your test html form to call your cwlogin.htm

Log into Harvest Order Entry


*Ok. Then the CT2 htm in the OI working directory is like this:

–]

Customer Code:


*Ok. then the OI stored procedure for Inet_ct2 is:

function Inet_CT2(request)

declare function Inet_QueryParam, Inet_Trace

*I'm trying to get the remote user which is coming in blank here

*or the Obireqid, Obiusername, Obipassword, Obisupplierid, Obicust1

RESPONSES=Inet_Trace(Request)

submit=Inet_QueryParam(request, "$SUBMIT")

STYPE=submit

OPEN 'CUSTORD' TO CUSTORD ELSE NULL

WRITE RESPONSES ON CUSTORD, "RESPONSES" ELSE NULL

equ CR$ to \0D0A\

html =' :CR$

html := '':CR$
html := 'OK. HI.':CR$
html := ''
html := '':CR$
html := 'OKOKOK':CR$
html := ''
return html

*Ok. And the responses record shows:

Content-type: text/plain

CONTENT_LENGTH=69

CONTENT_TYPE=application/x-www-form-urlencoded

GATEWAY_INTERFACE=CGI/1.1

HTTPS=

HTTP_ACCEPT=

HTTP_COOKIE=

HTTP_FROM=

HTTP_REFERER=http://www.harvsoft.com/cgi-bin/oicgi.exe/INET_REPOS?DOC_ID=CT2

HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; YouBet version 2.0.1.0)

PATH_INFO=/INET_REPOS

PATH_TRANSLATED=C:/sambar42/docs/INET_REPOS

QUERY_STRING=CUSTCODE=1111&$SUBMIT=Verify&Verify=INET_CT2&DOC_ID=CT2&FORM_ID=CT2

REMOTE_ADDR=208.223.8.76

REMOTE_HOST=

REMOTE_IDENT=

REMOTE_USER=

REQUEST_METHOD=POST

SCRIPT_NAME=/cgi-bin/oicgi.exe

SERVER_NAME=harvsoft

SERVER_PORT=80

SERVER_PROTOCOL=HTTP/1.0

SERVER_SOFTWARE=SAMBAR 4.2

SERVER_URL=

This shows no Remote user.

It has something to do with Action, doesn't it.

Thank you!


At 13 NOV 2000 12:04PM Bob Carten wrote:

Talking to Jackie

Bob

View this thread on the forum...

  • third_party_content/community/commentary/forums_nonworks/c80a6837e935976e8525699600589a73.txt
  • Last modified: 2023/12/28 07:40
  • by 127.0.0.1