NetTalk Central

Author Topic: Unable To Read this Post  (Read 4105 times)

elcidsps

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Email
Unable To Read this Post
« on: June 17, 2009, 11:36:33 AM »
Gurus!!!!
I wold love for Nettalk to be able to read the parameters line from this using getValue():

POST /frmdatahandler HTTP/1.1
Host: localhost:88
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.11) Gecko/2009060215 Firefox/3.0.11 (.NET CLR 3.5.30729)
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
X-Requested-With: XMLHttpRequest
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Referer: http://localhost:88/
Content-Length: 69
Cookie: SESSIONID=1080762147
Pragma: no-cache
Cache-Control: no-cache

cmd=fetch&recordid=8f52727b-5833-11de-ac7b-5e0a17576d1f&parentid=TEST


As it stands now, I am not able to retrieve the parameters with a getValue method.  Any assistance would be greatly appreciated.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Unable To Read this Post
« Reply #1 on: June 18, 2009, 10:55:18 PM »
It should parse it just fine.

where are you trying to determine the value?

Perhaps you need to post a small example of what you're trying to do for comment?

Cheers
Bruce

elcidsps

  • Newbie
  • *
  • Posts: 22
    • View Profile
    • Email
Re: Unable To Read this Post
« Reply #2 on: June 22, 2009, 08:22:52 AM »
Hey Bruce:

I'm afraid it doesn't.  This is an XMLHttpRequest post.  I am attempting to get the parameters using getValue.  This procedure that handles the request is getting called but the parameters are not being read.  Any suggestions?

Posting a small example is a lot harder than it sounds. 

I can read a "regular" post but not an XMLHttpRequest post.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Unable To Read this Post
« Reply #3 on: June 23, 2009, 11:44:44 PM »
There's no difference in it being an XMLHttpRequest post. The whole async side of nettalk depends on them, so there are lots of them happening all the time.

The method NetWebServerWorker._HandlePost should call _ParseSettings, so I guess following that code is the place to start debugging if you can't make an example.

cheers
Bruce