NetTalk Central

Author Topic: Net Client Error  (Read 4831 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
Net Client Error
« on: May 16, 2015, 04:19:27 AM »
Hi,
Doing a net.post() I'm getting an error:

Hostname or Port are not set to anything. (You must call self.open first).  NetSimple.Send

I have another similar procedure without problem, ehat cait be?
What means "call self.open"? NetClient does not have an open method.

Thanks
-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Net Client Error
« Reply #1 on: May 16, 2015, 12:40:40 PM »
>> NetClient does not have an open method.

NetClient doesn't have a POST method either - so I'm guessing you mean NetWebClient.
NetWebClient does have an OPEN method - it's in NetSimple and called for you when you do the POST.
The first parameter of the POST contains the URL and port number - in your note you don't use a parameter, but are you in fact calling it with one?

cheers
Bruce