What is preventing you from providing the referer (sic) in the HTTP header to placate the web service?
I would imagine HTTPAPI allows you to define the HTTP header for your request doesn't it?
-----Original Message-----
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Scott Mildenberger
Sent: 24 October 2013 17:05
To: web400@xxxxxxxxxxxx
Subject: [WEB400] Provide referer when accessing web service with HTTPAPI
I am accessing a web service using HTTPAPI procedure http_url_get_raw(). Since the access is not coming from a web page it is being rejected because the referer is blank. The web service does have an option to 'Enable Blank Referers' which will allow it to work but they warn that this may allow others to access the web service under our account. If this is not enabled I cannot access even by putting the address into the browser, it must be embedded as a link in a web page to work.
Is there a way to provide the referer? Is setting up my account to allow blank referers much of an issue as all of my access to this account is from behind our firewall?
Thanks,
Scott Mildenberger
Programmer/Analyst
Davis Transport Inc.
Missoula, MT
406-728-5510 x128
--
This is the Web Enabling the IBM i (AS/400 and iSeries) (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/web400.
NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.
--------------------------------------------------------------------------------
CoralTree Systems Limited
Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton
Hampshire
SO15 2EA
VAT Registration Number 834 1020 74.
As an Amazon Associate we earn from qualifying purchases.