• Subject: Re: What happened to HTTPAPI mailing list
  • From: Tools/400 <thomas.raddatz@xxxxxxxxxxx>
  • Date: Sat, 26 Jan 2019 18:16:18 +0100
  • Arc-authentication-results: i=1; mx.google.com; spf=neutral (google.com: 195.159.176.226 is neither permitted nor denied by best guess record for domain of rpg400@xxxxxxxxxxx) smtp.mailfrom=rpg400@xxxxxxxxxxx
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:user-agent:content-transfer-encoding :mime-version:references:message-id:date:subject:from:to; bh=IeClg6tKG1PMgEUIQvkKor7ICB2Nusf/ojVfyxPWUy0=; b=f/rnSme9OSJ776SoAXNBCKE+kBgBqvDYyqoHgO+kRXJT//SRSyim5ds11rcLf1s6Un nyUXj38KSNOK7iA9oMpOW/edwiV3t/DRDtDhgJNQamQSkr1UbvFccyyrhZNfd4eZ10TX txpU12eE+NgmIeyGSZCmPzYzg1Y7TkLY47dj9qRgWbcTt9aBzM6ao7jCC/VyK/V4VWnv jv9rcH68fQMvK9DPn7M/ug64BWciEMk30ZfXV/ExL77d3p7ea0RdfTpQS+m+it7SP4mR Ezs7hqatjfmDr6etVk437YKsEfRBcvkY19phAiKxwNHKPvP+0F+l3eE68F7gg9ldmwHe cScg==
  • Arc-seal: i=1; a=rsa-sha256; t=1548522992; cv=none; d=google.com; s=arc-20160816; b=ydwDa5c4B84/kvU9KtPHs+MBu418ANzOF5bMIpglaxN+HDmiMIFb2w1MLvJNf19Y4n SnWVjCRXmGqsyZ3qxyk8vSCbvXlJpH8emAwd6+VE1VuwzYPA3gy6A2dsCpBzbmcC4x63 +01QDYbeMwxHs6hTAZ2B1k2y+e/ys5SBp3pegeVIbtX2RnWamkOEPUrTuGp60AA6krqg 2qvjNy6+xBCJg5C/kpGhJq6G4F5ad1zdCeiufN0RvNQupq6Z7WU6OKl4VTlAdP0Xq1Ah QOvtlzii1XGIj/AJgvDvOSUeruQl9bDtLYYNI0orgHqjf0GKrpCIj4QuSDjQ6prizaps t1BA==
  • List-archive: <https://archive.midrange.com/rpg400-l/>
  • List-help: <mailto:rpg400-l-request@lists.midrange.com?subject=help>
  • List-id: "RPG programming on the IBM i \(AS/400 and iSeries\)" <rpg400-l.lists.midrange.com>
  • List-post: <mailto:rpg400-l@lists.midrange.com>
  • List-subscribe: <https://lists.midrange.com/mailman/listinfo/rpg400-l>, <mailto:rpg400-l-request@lists.midrange.com?subject=subscribe>
  • List-unsubscribe: <https://lists.midrange.com/mailman/options/rpg400-l>, <mailto:rpg400-l-request@lists.midrange.com?subject=unsubscribe>

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.




This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].