Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #25623
| Date | 2014-08-04 14:30 +1000 |
|---|---|
| From | Andrew Poulos <ap_prog@hotmail.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Post json to asp jscript |
| Message-ID | <QLCdndkekoKOkELOnZ2dnUVZ_oCdnZ2d@westnet.com.au> (permalink) |
I'm trying to us an elearning tracking piece of js called tincan that
posts JSON to an endpoint. The content type is set to application/json
and the request body (as IE's F12 developer console shows) is json. The
response headers give
response : HTTP/1.1 200 OK
content-length : 0
content-type : application/json; charset=utf-8
Though Chrome's developer console gives a content length of 16568.
When (on the server with classic ASP and JScript) I try
var dat = Request.Form;
or
var dat = Request.Form + "";
or
var dat = eval("(" + Request.Form + ")");
I just get 'undefined'.
My question is, if the payload is not empty why does request give undefined?
Andrew Poulos
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Post json to asp jscript Andrew Poulos <ap_prog@hotmail.com> - 2014-08-04 14:30 +1000
Re: Post json to asp jscript Martin Honnen <mahotrash@yahoo.de> - 2014-08-04 10:32 +0200
Re: Post json to asp jscript Andrew Poulos <ap_prog@hotmail.com> - 2014-08-04 18:44 +1000
Re: Post json to asp jscript Andrew Poulos <ap_prog@hotmail.com> - 2014-08-05 11:49 +1000
Re: Post json to asp jscript Andrew Poulos <ap_prog@hotmail.com> - 2014-08-10 12:21 +1000
Re: Post json to asp jscript "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2014-08-10 09:52 +0200
Re: Post json to asp jscript Andrew Poulos <ap_prog@hotmail.com> - 2014-08-11 08:44 +1000
csiph-web