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

RE: HTTP/1.1 403 Forbidden



You tell us what the problem is. What is the rc code you receive in the program? What is the message associated with the error? EXAMPLE1 of current beta shows how to defensively program. Asking a simple question gets simple answers. Always explain what you think is not working.

If you have this program working at other sites and not at this one, you need to go back to basics.

Do they have TCP/IP correctly configured? Is there a route to host (could be default route)? Is the firewall configured to allow the IBM i to get out on the internet? Not always reliable but a good start...ping or traceroute from the IBM i to the host server.

Why don't you post the debug log (EXAMPLE1 again)? A snippet of code is usually of little value without knowing why it doesn't work.

> -----Original Message-----
> From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-
> bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jeffreehy Talavera
> Sent: Thursday, March 04, 2010 2:02 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: HTTP/1.1 403 Forbidden
> 
> Hi all,
> 
> I´m trying to consume a Web Service using HTTPAPI,  like this:
> 
>  c                   eval      rc=http_url_post(
>  c                                'http://200.30.178.70'+
>  c                                '/service.asmx'+
>  c                                '/BuscarClientePorNumeroCliente'
>  c                                : data
>  c                                : size
>  c                                : '/tmp/httptest.html'
>  c                                : HTTP_TIMEOUT
>  c                                : HTTP_USERAGENT
>  c                                : 'application/x-www-form-
> urlencoded')
> 
> I already try this program in several installations, but it does not
> work in
> this one, what can it be the problem?
> thanks in advance.
> 
> Regards.
> 
> --
> *Jeffreehy Talavera Díaz
> Consultor Especialista
> S390, iSeries & Open System**s*
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------