[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HTTP Request Header
Hi Scott,
I'm using your http api on As400 at v6r1 to submit address validation
requests to [1]smartystreets.com street address validation web service.
I'm creating a GET request which is working great but, in order to get
some additional information from the web service, I need to specify a
certain http request header. I cannot figure out how to do this, am
hoping you can point me in the right direction.
Here's what smartystreets says I need to
send:�[2]https://smartystreets.com/docs/address#http-request-headers
Specifically it's the first one, X-Standardize-Only: true.� This is the code which presently works:
�url �= '[3]https://api.smartystreets.com/street-address' � �� � � + '?auth-id=xxxxxxxx' � � � � � + '&auth-token=xxxx'; � � � � � � � �� � � Form = WEBFORM_open(); � � � � � � � � � � � � � � � �� � � WEBFORM_setVar(Form : 'street' � � �: %trim(adrs)); � � � � WEBFORM_setVar(Form : 'secondary' � : %trim(adrs2)); �� � � WEBFORM_setVar(Form : 'city' � � � �: %trim(city)); � � � � WEBFORM_setVar(Form : 'state' � � � : %trim(state2)); � � � WEBFORM_setVar(Form : 'zipcode' � � : %trim(zip)); � �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � url = url + WEBFORM_getData(Form); � � � � � � � � � �� � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � WEBFORM_Close(Form); � � � � � � � � � � � � � � � � ��
�
� �� rc = http_url_get(url: tempFile);
�anks,� --
Chris Edmondson
509.670.6817
References
1. http://smartystreets.com/
2. https://smartystreets.com/docs/address#http-request-headers
3. https://api.smartystreets.com/street-address
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------