[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
http_url_post SetError() #43: CommTCP_read: time-out
- From: "Helge Bichel" <hbi@xxxxxxx>
- To: "'HTTPAPI and FTPAPI Projects'" <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
- Subject: http_url_post SetError() #43: CommTCP_read: time-out
- Date: Sat, 24 Sep 2011 23:37:03 +0200
Dear list members.
I got a suddenly got a problem with httpapi after the same program
using it has been
running daily for about 3 years without any need for change or
intervention.
I use OANDA.com for getting currency exchange rates and have an
account for this at OANDA.com.
No changes in the requesting RPG program.
No changes in LIBHTTP.
The http request is:
[1]http://www.oanda.com/cgi-bin/fxml/fxml?fxmlrequest=<convert><client
_id>xxxxxxxxx</client_id><expr>AED_AFA_ALL_ANG_AON_ARS_ATS_AUD_AWG_AZN
_BAM_BBD_BDT_BEF_BGL_BHD_BIF_BMD_BND_BOB_BRL_BSD_BTN_BWP_BZD_CAD_CDF_C
HF_CLP_CNY_COP_CRC_CSK_CUP_CVE_CYP_DEM_DJF_DKK_DOP_DZD_ECS_EEK_EGP_ESP
_ETB_EUR_FIM_FJD_FKP_FRF_GBP_GEL_GHC_GMD_GNF_GRD_GTQ_GYD_HKD_HNL_HRK_H
TG_HUF_IDR_IEP_ILS_INR_IQD_IRR_ISK_ITL_JMD_JOD_JPY_KES_KGS_KHR_KMF_KPW
_KRW_KWD_KYD_LAK_LBP_LKR_LRD_LSL_LTL_LUF_LVL_LYD_MAD_MGF_MMK_MNT_MOP_M
RO_MTL_MUR_MVR_MWK_MXP_MYR_MZM_NGN_NIO_NLG_NOK_NPR_NZD_OMR_PAB_PEN_PGK
_PHP_PKR_PLZ_PTE_PYG_QAR_ROL_RON_RUB_RWF_SAR_SBD_SCR_SDD_SDP_SEK_SGD_S
HP_SIT_SKK_SLL_SOS_SRG_STD_SVC_SYP_SZL_THB_TND_TOP_TRL_TTD_TWD_TZS_UAH
_UGX_USD_UYP_VEB_VND_VUV_WST_XAF_XAG_XAU_XCD_XEU_XOF_XPF_XPT_YER_YUN_Z
AR_ZMK</expr><exch>USD</exch></convert>
(need to hide the client_id, so it's just *all'x')
Executing this directly in IE8 works well and returns a xml document
with the correct content.
Executing this with httpapi results in (httpapi_debug.txt):
HTTPAPI Ver 1.23 released
2008-04-24
OS/400 Ver
V6R1M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819.
ProtLoc=0
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:
tradeware.org
DNS server found:
193.219.27.220
DNS server found:
80.67.202.76
http_persist_post():
entered
http_long_ParseURL():
entered
do_post():
entered
POST /cgi-bin/fxml/fxml
HTTP/1.1
Host:
www.oanda.com
User-Agent:
http-api/1.23
Content-Type:
text/xml
Expect:
100-continue
Content-Length:
768
recvresp():
entered
SetError() #43: CommTCP_read: No 100-Continue (error
ignored)
senddoc():
entered
?fxmlrequest=<convert><client_id>Tradeware</client_id><expr>AED_AFA_AL
L_ ß this shortened by me but actually contains the request shown
above !
recvresp():
entered
SetError() #43: CommTCP_read: time-out]
http_close(): entered
I notice the SetError #43 twice and think there is something happening
at the first instance if this. But why?
I am also using httpapi for request the geonames.com and it works
without any problems.
Hope for getting some help to explain and remove this error.
Best regards
Helge
References
1. http://www.oanda.com/cgi-bin/fxml/fxml?fxmlrequest=%3cconvert%3e%3cclient_id%3exxxxxxxxx%3c/client_id%3e%3cexpr%3eAED_AFA_ALL_ANG_AON_ARS_ATS_AUD_AWG_AZN_BAM_BBD_BDT_BEF_BGL_BHD_BIF_BMD_BND_BOB_BRL_BSD_BTN_BWP_BZD_CAD_CDF_CHF_CLP_CNY_COP_CRC_CSK_CUP_CVE_CYP_DEM_DJF_DKK_DOP_DZD_ECS_EEK_EGP_ESP_ETB_EUR_FIM_FJD_FKP_FRF_GBP_GEL_GHC_GMD_GNF_GRD_GTQ_GYD_HKD_HNL_HRK_HTG_HUF_IDR_IEP_ILS_INR_IQD_IRR_ISK_ITL_JMD_JOD_JPY_KES_KGS_KHR_KMF_KPW_KRW_KWD_KYD_LAK_LBP_LKR_LRD_LSL_LTL_LUF_LVL_LYD_MAD_MGF_MMK_MNT_MOP_MRO_MTL_MUR_MVR_MWK_MXP_MYR_MZM_NGN_NIO_NLG_NOK_NPR_NZD_OMR_PAB_PEN_PGK_PHP_PKR_PLZ_PTE_PYG_QAR_ROL_RON_RUB_RWF_SAR_SBD_SCR_SDD_SDP_SEK_SGD_SHP_SIT_SKK_SLL_SOS_SRG_STD_SVC_SYP_SZL_THB_TND_TOP_TRL_TTD_TWD_TZS_UAH_UGX_USD_UYP_VEB_VND_VUV_WST_XAF_XAG_XAU_XCD_XEU_XOF_XPF_XPT_YER_YUN_ZAR_ZMK%3c/expr%3e%3cexch%3eUSD%3c/exch%3e%3c/convert
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------