[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems Using http_url_post - SetError() #13: HTTP/1.1 400 Bad Request



   Fist time user of the HTTPAPIs, and am having a problem trying to send
    XML formatted data to internet service.


   Attached is the httpapi_debug.txt.


   Any help would be grateful...



   Mitch Farber

   Application Programmer/Analyst

   Acme Tools


   [1]mfarber@xxxxxxxxxxxxx


   701-746-2893 Office

References

   1. http://www.acmetools.com/
HTTPAPI Ver 1.24 released 2012-01-23
OS/400 Ver V7R1M0

http_setauth(): entered
http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry  : 2
DNS resolver options: x'00000136'
DNS default domain: ACME1948.COM
DNS server found: 205.171.3.65
DNS server found: 205.171.2.65
DNS server found: 192.168.2.125
-------------------------------------------------------------------------------------
Dump of server-side certificate information:
-------------------------------------------------------------------------------------
Cert Validation Code = 6000
-----BEGIN CERTIFICATE-----
MIIF3DCCBMSgAwIBAgIQci6Fl3xAmn0clvdP3w2HOTANBgkqhkiG9w0BAQUFADBi
MQswCQYDVQQGEwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMu
MTAwLgYDVQQDEydOZXR3b3JrIFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3Jp
dHkwHhcNMTIwMjE1MDAwMDAwWhcNMTQwODE0MjM1OTU5WjCB4DELMAkGA1UEBhMC
VVMxDjAMBgNVBBETBTU4MTAyMQswCQYDVQQIEwJORDEOMAwGA1UEBxMFRmFyZ28x
KDAmBgNVBAkTHzE4MTAgTkRTVSBSZXNlYXJjaCBDaXJjbGUgTm9ydGgxHjAcBgNV
BAoTFVBlZGlncmVlIFRlY2hub2xvZ2llczEUMBIGA1UECxMLRGV2ZWxvcG1lbnQx
GDAWBgNVBAsTD1NlY3VyZSBMaW5rIFNTTDEqMCgGA1UEAxMhb25ldmlldzIucGVk
aWdyZWV0ZWNobm9sb2dpZXMuY29tMIIBIjANBg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dEQQlMCOCIW9uZXZp
ZXcyLnBlZGlncmVldGVjaG5vbG9naWVzLmNvbTANBgkqhkiG9w0BAQUFAAOCAQEA
OFBTugjJAOMUP049Eet6tlpv9cktQKkhIOTKzB/o5m2s9kYc7ORDt31DAOwIDkI/
gjhOh4f+XcTbx0hJLYE3AyOZj5HCnJ7p741Yt0c045NO1Th+Fn9ALgV43f91HZ/7
gm5hzgnTM3qFcobAgwA1oPWbuJ+eXFRDn+aV8ZGQVDhmloGi1W3PGQijx4JTaSCN
tdMgwTyzbpE2/F/3YDK9UkkE5XOpy6fmolpVmy3bgXyMR2uCpuXvkCzNRRN8WKLz
sotsFiSVreRjZ6ZkJ/WRkDfYfnIQDixOzHH+QxPfA3FAgC4ADxmfT/jcZcP/G9XI
fjBkjyo9NoYgSkTv2mf2jg==
-----END CERTIFICATE-----
Serial Number: 72:2E:85:97:7C:40:9A:7D:1C:96:F7:4F:DF:0D:87:39
Common Name: oneview2.pedigreetechnologies.com
Country: US
State/Province: ND
Locality: Fargo
Org Unit: Pedigree Technologies
Org: Secure Link SSL, OU=Development
PostalCode: 58102
Issuer CN: Network Solutions Certificate Authority
Issuer Country: US
Issuer Org: Network Solutions L.L.C.
Version: 03
not before: 20120214180000
not after: 20140814185959
pub key alg: 1.2.840.113549.1.1.5

Protocol Used: TLS Version 1
http_persist_post(): entered
http_persist_req(POST) entered.
http_long_ParseURL(): entered
do_oper(POST): entered
There are 0 cookies in the cache
POST /services/api/landmarks.xml HTTP/1.1
Host: oneview2.pedigreetechnologies.com
User-Agent: http-api/1.24
Content-Type: text/xml
Content-Length: 344
Authorization: Basic bWZhcmJlckBhY21ldG9vbHMuY29tOjEyMzQ=


senddoc(): entered
<com.pedigree.core.LandmarkType><name>Name</name><description>Description</description><type>Landmark</type><active>true</active><longitude>-110.12</longitude><latitude>50.34</latitude><altitude>0.0</altitude><locationName>Fargo, ND</locationName><landmarkGroupId>Customers</landmarkGroupId><radius>1.0</radius></com.pedigree.core.LandmarkType>
recvresp(): entered
HTTP/1.1 400 Bad Request
Server: nginx/0.8.54
Date: Thu, 20 Jun 2013 21:38:18 GMT
Content-Type: text/html
Connection: keep-alive
X-Powered-By: Servlet/3.0 JSP/2.2 (GlassFish Server Open Source Edition 3.1.2 Java/Sun Microsystems Inc./1.6)
Content-Length: 1086


SetError() #13: HTTP/1.1 400 Bad Request
recvresp(): end with 400
recvdoc parms: identity 1086
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";><html xmlns="http://www.w3.org/1999/xhtml";><head><title>GlassFish Server Open Source Edition 3.1.2 - Error report</title><style type="text/css"><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 400 - </h1><hr/><p><b>type</b> Status report</p><p><b>message</b></p><p><b>description</b>The request sent by the client was syntactically incorrect ().</p><hr/><h3>GlassFish Server Open Source Edition 3.1.2</h3></body></html>
SetError() #13: HTTP/1.1 400 Bad Request
http_close(): entered
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------