NetTalk Central

Author Topic: net.Post(URL) - what can I send to debugview to see what i'm posting  (Read 5842 times)

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
NT10

What embed would I use and method to post to debugview what I'm posting?

Thank you.

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
No specific embed per say. 

You can enter some code and put a p_web.Trace() call right under it to see what your code is doing.

I normally use debug view to make sure my session values are being set and/or received properly.

Something like:

Let's say I set a session value...
p_web.SSV('SomeSessionValue', 'TheValue')

and I want to see that session value in DebugView...

p_web.Trace('Here is my session value - ' & p_web.GSV('SomeSessionValue'))

If you go to the local NetTalk extension, performance tab, on the webserver window, you can set the server to run in "debug" mode which will allow you to literally see, in DebugView, everything that the server processes.

Also, several, if not all, of the Capesoft classes make use of Trace.

String Theory - st.Trace() (Where the object is named st.)

NetWebServerWorker - net.Trace()

and so on....

Maybe that will help,

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Thank you for your response.  I do use trace to send things to debugview.  My issue is i'm trying to see what information the POST() method is sending to the URL.  Per the Nettalk documentation @ http://www.capesoft.com/docs/NetTalk10/NetTalkWebClient.Htm#Post i'm doing the following:

net.SetValue('CustomerName','Charlie')
net.SetValue('Company','Capesoft')
net.Post(url)

I want to see what net.Post is sending

DonRidley

  • Don Ridley
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 729
  • donaldridley2011@gmail.com
    • View Profile
    • Email
Ah.  My apologies. 

I would look at the net.send procedure. 

In the NetTalk demo app, TestWebClient procedure:

  if self.packet.binDataLen > 0
    PageSent = self.packet.binData[1 : self.packet.binDataLen] & '<13,10>-----------------<13,10>' & PageSent
  end

So, I'm curious if you could do something like:

p_web.Trace(PageSent)

Good Luck,

Don
"Eliminate the impossible, whatever remains, however unlikely, must be the truth."

NetTalk 12.55
Clarion 11

bshields

  • Sr. Member
  • ****
  • Posts: 392
    • View Profile
    • Inhabit
    • Email
Hi David,

Maybe just try posting it back to your server (or any NT server) and use its logging screen to visually inspect the post.

Regards
Bill

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Thank you bshields, I ended up running one of my apps and posting the data to it.

Don, I'll give your suggestion a try.  Thank you.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
you could add .TRACE to the .SEND method;

or just set the Conditional Compile Switch

NETSHOWSEND=>1

just remember to set it to 0 once you're done.

Cheers
Bruce