×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hi Scott,
Sorry, the "c" was a typo. I sent the emails to **@scottklement.com.
I do not know, why I cannot reply to your posting at code400.com. There
is no "Reply" button for me. Therefore I reply here and I am going to
send you a private email with some logs and "EXAMPLE12B" to demonstrate
problem #2.
Problem #2:
When the remote and local POST ccsids are equal, then the 'BinaryData'
switch is set to *on in HTTP_SetCCSIDs(). Then webform_setVar() aka
http_url_encoder_addvar_long_s() calls http_url_encoder_addvar_long(),
which calls http_xlatedyn(), which calls BinaryCopy() instead of
CCSIDXLateDyn() (because of BinaryData=*on) and hence the query
parameter is not converted into the CCSID of the protocol data. It
remains unchanged EBCDIC data. That looks like this in the debug log:
There are 0 cookies in the cache
GET
http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?%98%A4%85%99%A8=%C3%88%89%83%81%87%96
HTTP/1.1
Host: api.wunderground.com
User-Agent: http-api/1.39
Actually it should look like that:
There are 0 cookies in the cache
GET
http://api.wunderground.com/auto/wui/geo/ForecastXML/index.xml?query=Chicago
HTTP/1.1
Host: api.wunderground.com
User-Agent: http-api/1.39
From my point of view the actual problem is, that
http_url_encoder_addvar_long() calls http_xlatedyn(). But
http_xlatedyn() calls CCSIDXLateDyn(), which uses the pToAscii and
pToEbcdic iconv() handles. But these handles are intended to be used for
converting POST data and _not_ protocol data. The URL is protocol data
and not POST data, isn't it? Or am I missing something?
Regards,
Thomas.
Am 26.01.2019 um 00:00 schrieb Scott Klement:
My email address (and name) is scottklement.com not scottclement.com.
On 1/25/2019 2:09 AM, Thomas Raddatz wrote:
Hi Scott,
I tried to send email to your email address (**@scottclement.com) at
the end of November (27.11.2018) and start of December (07.12.2018)
but got no reply. The subject of the emails was "Problem with ccsid of
response file when using http_req()" and "Problems with mailing list
and HTTPAPI".
I just posted the problems at code400.com, because I did not see your
posting here fast enough. I should have read all new posting before
doing that.
Thomas.
As an Amazon Associate we earn from qualifying purchases.