New Forum system requires email address which you used to apply for your account to replace your original username. Password stays the same.Please see this post for more details
http://forum.yealink.com/forum/showthread.php?tid=40344

Yealink Test Club has been officially launched. Please visit post below to get detail information. Come and join us!
http://forum.yealink.com/forum/announcements.php?aid=18

We just had the YMCS online and we are also working on the features plan on the future versions, in this regard we are need to hear your voice about the YMCS.
Please visit : http://forum.yealink.com/forum/showthread.php?tid=42322


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
T22P - Push XML Error: ip don't match or xml content is wrong
Author Message
janeuner Offline
Junior Member
**

Posts: 4
Joined: Oct 2014
Reputation: 0
Post: #3
RE: T22P - Push XML Error: ip don't match or xml content is wrong
Actually, I was testing it out with a .NET app. I pulled up the PHP code and found my issue.



Quote:The HTTP POST packet must contain an “xml=” line in the message body.

Code:
function push2phone($server,$phone,$data)
{
  $xml = "xml=".$data;
  ...
}

It is a rather unusual convention, to use application/x-www-form-urlencoded key-value pairs with a text/xml media type. But that little change has set me on the right path at least.

FYI, the current firmware seems to ignore the contents of the referer header.

Thanks for the quick feedback!
03-24-2015 04:59 AM
Find all posts by this user    like1    dislike0 Quote this message in a reply
Post Reply 


Messages In This Thread
RE: T22P - Push XML Error: ip don't match or xml content is wrong - janeuner - 03-24-2015 04:59 AM

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  T22P Action URI ATrans and BTrans not working? DaveThompson 2 2,764 09-10-2019 10:47 AM
Last Post: DaveThompson
  T22P Stuck on justingoldberg 0 93 08-16-2019 01:19 PM
Last Post: justingoldberg
  T27G Load XML Browser URL Error aciacci 0 642 11-14-2018 09:00 AM
Last Post: aciacci
  T22P DSSKey linekey labels andcza 2 1,877 05-10-2018 06:02 AM
Last Post: andcza
  T22p does not get IP, and does not access the web interface even by manually config jason.luka 5 2,289 04-18-2018 01:29 AM
Last Post: Samuel_Yealink
  T22P -0 3CX firmware web server fails preterion 1 1,528 04-17-2018 02:35 PM
Last Post: will3
  SIP T22P Problem liamretrams 2 3,433 06-01-2017 11:22 AM
Last Post: wcolato
  T19P E2 identifies itself as wrong User - from TO header of incoming request ivanp 1 2,228 05-04-2017 09:13 AM
Last Post: Travis_Yealink
  T22P push xml v61 version Qwerty 0 1,226 12-05-2016 11:02 AM
Last Post: Qwerty
  Push XML v61 guide Qwerty 0 1,043 12-02-2016 12:44 PM
Last Post: Qwerty

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us   Yealink   Return to Top   Return to Content   Lite (Archive) Mode   RSS Syndication