Re: [WebDNA] Anyone submitted SoAP info in TCPSEND?

This WebDNA talk-list message is from

2017


It keeps the original formatting.
numero = 113626
interpreted = N
texte = 1221 Is a host header is required by the API? You don=92t have a host header = in your [tcpsend] context. Donovan On Jun 21, 2017, at 2:27 PM, Alex McCombie wrote: > I=92m being forced to try and submit SOAP data to a clients mail = system. For the life of me I can=92t seem to get past the format error. >=20 > Any ideas? >=20 > Here is the code: >=20 >=20 > [text]content=3D[unurl]%0D%0A[/UnURL] > > > > > HIDDEN FOR EXAMPLE > HIDDEN FOR EXAMPLE > > > > [/text] >=20 > [text]lengthvar=3D[countchars][content][/CountChars][/text] >=20 >
> [tcpconnect host=3Dapi.campaigner.com&port=3D443&SSL=3DT][!]> [/!][tcpsend]POST /2013/01/listmanagement.asmx =HTTP/1.1[unurl]%0D%0A[/UnURL][!]> [/!]Content-Length: [lengthvar][unurl]%0D%0A[/UnURL][!]> [/!]Content-Type: application/soap+xml; =charset=3Dutf-8[unurl]%0D%0A[/UnURL][!]> [/!][unurl]%0D%0A[/UnURL][!]> [/!][content][unurl]%0D%0A[/UnURL][!]> [/!][unurl]%0D%0A[/UnURL][!]> [/!][/TCPSend][/tcpconnect]>=20>=20> =97=97=97=97=97=97=97=97=97=97=97=97=97>=20> All I get back is:> HTTP/1.1 400 Bad Request> Content-Type: text/html; charset=3Dus-ascii> Server: Microsoft-HTTPAPI/2.0> Date: Wed, 21 Jun 2017 19:20:40 GMT> Connection: close> Content-Length: 334> Strict-Transport-Security: max-age=3D15552000; includeSubDomains>=20>=20> Bad Request - Invalid Hostname>=20> HTTP Error 400. The request hostname is invalid.>=20>=20>=20>=20> But the domain is correct. Their tech support can get this working via =PHP/ASP etc.=20>=20> Anyone have an ideas as I have tried just about every variation I can =think of.>=20> Thx> Alex>=20---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us.





Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Anyone submitted SoAP info in TCPSEND? (Alex McCombie 2017)
  2. Re: [WebDNA] Anyone submitted SoAP info in TCPSEND? (Donovan Brooke 2017)
  3. [WebDNA] Anyone submitted SoAP info in TCPSEND? (Alex McCombie 2017)
1221 Is a host header is required by the API? You don=92t have a host header = in your [tcpsend] context. Donovan On Jun 21, 2017, at 2:27 PM, Alex McCombie wrote: > I=92m being forced to try and submit SOAP data to a clients mail = system. For the life of me I can=92t seem to get past the format error. >=20 > Any ideas? >=20 > Here is the code: >=20 >=20 > [text]content=3D[unurl]%0D%0A[/UnURL] > > > > > HIDDEN FOR EXAMPLE > HIDDEN FOR EXAMPLE > > > > [/text] >=20 > [text]lengthvar=3D[countchars][content][/CountChars][/text] >=20 >
> [tcpconnect host=3Dapi.campaigner.com&port=3D443&SSL=3DT][!]> [/!][tcpsend]POST /2013/01/listmanagement.asmx =HTTP/1.1[unurl]%0D%0A[/UnURL][!]> [/!]Content-Length: [lengthvar][unurl]%0D%0A[/UnURL][!]> [/!]Content-Type: application/soap+xml; =charset=3Dutf-8[unurl]%0D%0A[/UnURL][!]> [/!][unurl]%0D%0A[/UnURL][!]> [/!][content][unurl]%0D%0A[/UnURL][!]> [/!][unurl]%0D%0A[/UnURL][!]> [/!][/TCPSend][/tcpconnect]>=20>=20> =97=97=97=97=97=97=97=97=97=97=97=97=97>=20> All I get back is:> HTTP/1.1 400 Bad Request> Content-Type: text/html; charset=3Dus-ascii> Server: Microsoft-HTTPAPI/2.0> Date: Wed, 21 Jun 2017 19:20:40 GMT> Connection: close> Content-Length: 334> Strict-Transport-Security: max-age=3D15552000; includeSubDomains>=20>=20> Bad Request - Invalid Hostname>=20> HTTP Error 400. The request hostname is invalid.>=20>=20>=20>=20> But the domain is correct. Their tech support can get this working via =PHP/ASP etc.=20>=20> Anyone have an ideas as I have tried just about every variation I can =think of.>=20> Thx> Alex>=20---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list talk@webdna.usTo unsubscribe, E-mail to: talk-leave@webdna.usarchives: http://www.webdna.us/page.dna?numero=3D55Bug Reporting: support@webdna.us.



Donovan Brooke 

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

passing the variable (1999) SendTo more emails (1998) Single Link browsing (1997) Spawn not working (1999) Email notification to one of multiple vendors ? (1997) searchable list archive (1997) did I miss anything (1997) Form/HTML Help (2000) Authenticate (1997) Emailer help....! (1997) WebCat 4 / 4.5 License for sale! (2003) RE: IIS4b2 and WebCatalog b19 (1997) Single Link browsing (1997) [subtotal] problems -- help? (1998) WCS Newbie question (1997) WebDNA versus ASP [OT] (2002) Database Advice (1996) WebCat for mass emailings (1997) Authenticate Questions (2003) Multiple prices (1997)