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

Re: Proxy Servers



Sender: Rick Ms <rickmsusa@xxxxxxxxx>



 Scott, 

  In my case I only made one simple change to the
HTTPAPI that relate to supporting Proxy servers. In
the Post method I just included the complete URL
instead of just the path to the URI. 

  Before the change, I just wasn't getting anything
back from the Host and the HTTPAPI was basically
timing out. In later conversations with the other
party we were made aware that in their production
environmnet they have a proxy server. This proxy
element was not present in their integration
environment, therefore the HTTPAPI worked perfectly
when pointing to that environment. 

After I included the complete URL in the Post method
header I started getting HTTP error codes from what (I
think) is the proxy server. I thought this would
indicate that we were getting closer to resolving the
issue. The error we are now getting is "403
Forbidden". I was hoping to get some direction on how
you would approach this error, would you concentrate
at enhancing the API or would you try to look into the
server permissions instead...? 

  I would be very happy to share my contributions to
the HTTPAPI on proxy support. However, I just don't
have enough evidence that the HTTPAPI needs to be
modified for this type of issue.


  Thanks 



--- Scott Klement <sk@xxxxxxxxxxxxxxxx> wrote:

> 
> I'm curious as to how you managed to get HTTPAPI to
> work with a proxy 
> server?  Typically, HTTPAPI connects to the exact
> system that you list in 
> the URL, consequently, it doesn't work with a proxy
> server.
> 
> In a proxy server scenario, there'd have to be
> additional parameters where 
> you specified proxy information, and the protocol
> would have to be treated 
> a little bit differently.  But, that code has never
> been written for 
> HTTPAPI, because I haven't needed proxy server
> support.
> 
> Naturally, as an open source project, you're welcome
> to add support for 
> proxy servers.  I'd be happy to accept it as a
> contribution to the project 
> (as long as it doesn't break backward compatibilty,
> etc.)
> 
> But, I couldn't write the support if I wanted to,
> since I don't have 
> access to a proxy server to test with.  (Not that
> I'd have time, even if I 
> did!)
> 
> ---
> Scott Klement  http://www.scottklement.com
> 
> On Wed, 7 Dec 2005, Rick Ms wrote:
> 
> > Sender: Rick Ms <rickmsusa@xxxxxxxxx>
> >
> >  Scott, (everyone is also welcome to contribute)
> >
> >  Just wanted to know your opinion on the
> following:
> >
> >  Is there any special consideration that you have
> to
> > take into account when sending HTTP Post requests
> to a
> > proxy server using your HTTPAPI..? It is my
> > understanding that when sending request to a proxy
> you
> > need to send the complete URL in the Post method
> and
> > not just the path of the URI. Since we are an
> AS400
> > shop I really don't know what the industry
> standard is
> > on submitting http requests to an environment
> where a
> > proxy is also part of the equation.
> >
> >  In my case, I'm getting a "HTTP 403 Forbidden"
> > status code after a Post request. The people on
> the
> > other side of the fence want to blame the 403
> errors
> > on the way the Post is being submitted. I thought
> the
> > 403 errors could be related to a permission issue
> on
> > the server side.
> >
> >  Question: How would you approach a 403-error
> > message? Would you think the server needs to look
> into
> > it or would you try to look into the HTTPAPI..?
> >
> >  What is your take at the real purpose for the 403
> > message.?
> >
> >  Thanks Scott, I really appreciate in advance
> > whatever inside you could give me on this..?
> >
> >
> >
> >
> > __________________________________________
> > Yahoo! DSL ? Something to write home about.
> > Just $16.99/mo. or less.
> > dsl.yahoo.com
> >
> >
>
-----------------------------------------------------------------------
> > This is the FTPAPI mailing list.  To unsubsribe
> from the list send mail
> > to majordomo@xxxxxxxxxxxxx with the body:
> unsubscribe ftpapi mymailaddr
> >
>
-----------------------------------------------------------------------
> >


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------