[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: GEOIP web service - This page requires a user-id & password



Glenn,

I didn't see any replies to this last week. Did you get it working?

If not...
The easiest solution...ask your network person to open a hole for port 80
from the IBM i. We use a stateful proxy and HTTPAPI works fine with the
exception in place.
Second solution...depending on your proxy solution, you can use the proxy
support in HTTPAPI. This helps to maintain the strict security of your proxy
solution, but usually results in a user and password hardcoded plain text in
a source member (it obviously could be a special use user/password). I don't

think there are examples in the library itself, but a very simple use
(without authentication) is:

http_setproxy('your.proxy.com': 8080);

Look in HTTPAPI_H to see the proxy procedures and search the archives
(http://www.scottklement.com/archives/ftpapi/) for the particular procedure
you need.

Nick Townsend provided this information on using it with authentication:

Proxy support has been in for a while, but it didn't work with SSL until
Scott fixed it in version 1.21pre1.  I haven't checked that the fix is in
the full release version of 1.21, but I assume it is.  All you have to do is
to call http_setproxy() with the details of the proxy, and optionally call
http_proxy_setauth() if you need to authenticate with the proxy, before you
send an http request.  For example:

rc = http_setproxy( <proxy name> : <proxy port> );

rc = http_proxy_setauth( HTTP_AUTH_BASIC : <user id> : <password> );

__________________________________

Glenn, please do let us know if you got it working.

Mike Krebs

   

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of GLENN HEIMBURGER
Sent: Monday, July 28, 2008 7:57 AM
To: HTTPAPI and FTPAPI Projects
Subject: RE: GEOIP web service - This page requires a user-id & password

Hi Mike,
I've not been able to get any of the examples to work.

I'm working with our network guy who is quite familiar with the
Microsoft side but not as familiar with our IBM side.
The i5 TCP/IP Domain name server is pointing to our Microsoft DNS
server.

Any idea where to look or what to change?

Glenn


-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Monday, July 28, 2008 8:01 AM
To: HTTPAPI and FTPAPI Projects
Subject: Re: GEOIP web service - This page requires a user-id & password

Glenn,

did you get any of the examples to work?

The error is noted so early in the log that it seems you have a proxy
problem.

Mike Krebs
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------

-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------