[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Example 1 302 error
Mike,
I don't think we are using a proxy server in our network.
I'm wondering if it could be a product called "WebSense" that is
redirecting things.
Guess I'll have to talk to the Network people to open up our AS/400 IP
address in WebSense especially since we are going to a brand new System
i next week (running parallel for a couple of weeks).
I don't want any limitations on either box.
Thanks for your input,
Craig
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mike Krebs
Sent: Monday, May 12, 2008 11:21 AM
To: 'HTTPAPI and FTPAPI Projects'
Subject: RE: Example 1 302 error
Craig,
The URL "moved" to a location within your network and asked for
authentication. You are obviously getting caught in your proxy. Compare
the
failing run with the ones that work and maybe you can see why they work.
Also, there is proxy support in LIBHTTP is you want to use the proxy. I
haven't really tried it but the original patch is talked about here:
http://www.scottklement.com/archives/ftpapi/200702/msg00038.html
One thing I ran into on our system is that our IBM i has two IP
addresses
and seems (at least to me) to be kind of random on which one is used for
outgoing. I opened both addresses in our proxy and had no problems after
that.
Mike
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Craig
Jacobsen
Sent: Monday, May 12, 2008 6:50 AM
To: HTTPAPI and FTPAPI Projects
Subject: Example 1 302 error
I saw some of the earlier posts and wanted to incorporate some news on
our Intranet site. I am already getting the weather from the Weather
message file (thanks Scott) and am calling another program that uses
soap to get a quote of the day
('http://swanandmokashi.com/HomePage/WebServices/QuoteOfTheDay.asmx')
which is successful and runs during the page creation in Net.Data. I
tried the rss feed to iseries and got the 302 error. I made the change
that Scott suggested to go to another news service and got the same
error. I saw I was getting the 302 error at http_url_get so I tried
Example 1 which also uses http_url_get to Scott's web site which I know
is OK. I am failing at the do_get subprocedure in the service program
and getting a return code of 302.
Here is the debug log:
HTTPAPI Ver 1.23 released 2008-04-24
OS/400 Ver V5R2M0
New iconv() objects set, PostRem=819. PostLoc=0. ProtRem=819. ProtLoc=0
http_url_get(): entered
http_persist_open(): entered
http_long_ParseURL(): entered
DNS resolver retrans: 2
DNS resolver retry : 2
DNS resolver options: x'00000136'
DNS default domain: urlmutual.com
DNS server found: 172.27.3.3
DNS server found: 172.27.3.5
http_persist_get(): entered
http_long_ParseURL(): entered
do_get(): entered
GET /rpg/socktut/tutorial.pdf HTTP/1.1
Host: www.scottklement.com
User-Agent: http-api/1.23
recvresp(): entered
HTTP/1.0 302 Moved
Location:
http://172.27.3.12:15871/cgi-bin/authenticate.cgi?ws-session=3774914013
Pragma: no-cache
Cache-Control: no-cache
SetError() #13: HTTP/1.0 302 Moved
recvdoc parms: identity 0
header_load_cookies() entered
recvdoc(): entered
SetError() #0:
SetError() #13: HTTP/1.0 302 Moved
http_close(): entered
Any help would be appreciated,
Craig
************End of Data********************
Confidentiality Notice: This e-mail message, including any attachments,
is
for the sole use of the intended recipient(s) and may contain
confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the intended recipient,
please
contact the sender by reply e-mail and destroy all copies of the
original
message. Unless expressly stated in this e-mail, nothing in this
message or
any attachment should be construed as a digital or electronic signature.
-----------------------------------------------------------------------
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
-----------------------------------------------------------------------
Confidentiality Notice: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Unless expressly stated in this e-mail, nothing in this message or any attachment should be construed as a digital or electronic signature.
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------