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

RE: Troubleshooting a POST



The length isn't exceeding 32K.
I copied the data from this debug file and pasted it into the browser as
follows 
http://xx.xx.xx.xxx//gatewayRMIWEB/GatewayClient?debug_file_data

I assumed that since the data being sent was going to always exceed 100
characters I would need to use the post method.
I'll try using http_url_get_xml.

Here is the result of the debug file
HTTPAPI Ver 1.21pre7 released 2007-09-07

New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_url_post(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
http_persist_post(): entered
http_long_ParseURL(): entered
do_post(): entered
POST /gatewayRMIWEB/GatewayClient HTTP/1.1
Host: xx.xx.xx.xxx
User-Agent: http-api/1.21
Content-Type: text/xml
Expect: 100-continue
Content-Length: 1766


recvresp(): entered
HTTP/1.1 100 Continue


SetError() #13: HTTP/1.1 100 Continue
senddoc(): entered
OutputType=1&InputType=1&Data=%3Crequest+name%3D%22CreateOrder%22%3E%3CO
rders%3E%3COrder%3E%3COrderHeader%3E%3CCustomerID%3E016515555555%3C%2FCu
stomerID%3E%3CWarehouseId%3E01%3C%2FWarehouseId%3E%3CReviewOrderHold%3ET
S%3C%2FReviewOrderHold%3E%3CPONumber%3ETEST+PO%3C%2FPONumber%3E%3CBillTo
Contact%3EGrizzly%3C%2FBillToContact%3E%3CBillToCity%3ELindstrom%3C%2FBi
llToCity%3E%3CBillToState%3EMN%3C%2FBillToState%3E%3CBillToZip%3E55045%3
C%2FBillToZip%3E%3CBillToPhone%3E6515555555%3C%2FBillToPhone%3E%3CBillTo
PhoneExt%3E%3C%2FBillToPhoneExt%3E%3CBillToCntryCode%3EUSA%3C%2FBillToCn
tryCode%3E%3CCustomerAddr1%3E1313+Mockingbird+Lane%3C%2FCustomerAddr1%3E
%3CContractNumber%3E%3C%2FContractNumber%3E%3CCustomerName%3EGrizzly%3C%
2FCustomerName%3E%3CShipToAddr1%3E1313+Mocking+Bird+Lane%3C%2FShipToAddr
1%3E%3CShipToCity%3ELindstrom%3C%2FShipToCity%3E%3CShipToCountry%3EUSA%3
C%2FShipToCountry%3E%3CShipToName%3EGrizzly%3C%2FShipToName%3E%3CShipToS
tate%3EMN%3C%2FShipToState%3E%3CShipToPhone%3E6515555555%3C%2FShipToPhon
e%3E%3CShipToZip%3E55045%3C%2FShipToZip%3E%3CWebTransactionType%3ETSF%3C
%2FWebTransactionType%3E%3CWebProcessID%3ER%3C%2FWebProcessID%3E%3COrder
Type%3EO%3C%2FOrderType%3E%3C%2FOrderHeader%3E%3COrderDetail%3E%3CLineIt
emInfo%3E%3CItemNumber%3E0100.6001%3C%2FItemNumber%3E%3COrderQty%3E1%3C%
2FOrderQty%3E%3CUnitOfMeasure%3EEA%3C%2FUnitOfMeasure%3E%3CWarehouseId%3
E01%3C%2FWarehouseId%3E%3CLineItemType%3EI%3C%2FLineItemType%3E%3CItemDe
sc1%3Eitem+desc+1%3C%2FItemDesc1%3E%3CActualSellPrice%3E1%3C%2FActualSel
lPrice%3E%3CCost%3E1%3C%2FCost%3E%3CListPrice%3E1%3C%2FListPrice%3E%3CIt
emId%3E1%3C%2FItemId%3E%3C%2FLineItemInfo%3E%3C%2FOrderDetail%3E%3C%2FOr
der%3E%3C%2FOrders%3E%3C%2Frequest%3E&SubscriberID=xxxxx&SubscriberPassw
ord=xxxxxx&TransactionName=CreateOrder
recvresp(): entered
HTTP/1.1 200 OK
Date: Fri, 15 Feb 2008 21:04:51 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Server: WebSphere Application Server/6.0
Content-Language: en-US
Content-Length: 128


SetError() #13: HTTP/1.1 200 OK
recvdoc parms: identity 128
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
<response>
	<Status>
		<Code>*ERROR</Code>
		<Message>Transaction name provided is not
valid!</Message>
	</Status>
</response>

http_close(): entered

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Friday, February 15, 2008 2:46 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Troubleshooting a POST

Is it possible that the total size of your URL (with the XML data added,

etc) is more than 32k?

Have you created a debug file?  Does the data in that file look correct?

I'm a little baffled, because you're referring to this as a POST -- but 
instead of sending the data as POST data, you're sending it as part of 
the URL -- something that's normally only done with the GET method (not 
the POST method).

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------