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

Re: URL posting



The error message means exactly what it says:  HTTPAPI sent a connect 
request to the remote server, and didn't receive a response.

This usually means that there's a firewall blocking your connection.

Sometimes it means that you need to configure a proxy.  (Are you 
specifying a proxy for the other HTTP requests you're doing?)

It could also mean a lot of other things, such as a routing error 
somewhere between your system and the destination system, or that the 
server is down.


Mohamed Musthafa Safarulla wrote:
>    Addition:
>    The 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_setauth():
>    entered
>    http_url_post():
>    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:
>    xxx.COM
>    DNS server found:
>    xxx.xx.x.186
>    DNS server found:
>    xxx.xx.x.126
>    DNS server found:
>    xxx.xx.xx.21
>    SetError() #7: Timeout occurred while trying to connect to
>    server!
>    Thanks,
>    Musthafa
> 
>    On Fri, Aug 28, 2009 at 4:31 PM, Mohamed Musthafa Safarulla
>    <[1]mohamedmusthafa.safarulla@xxxxxxxxx> wrote:
> 
>      Addition:
>      I need authentication before post so i do like this
>      Eval      Data = data in the for of XML
>      callp     http_setauth(HTTP_AUTH_BASIC:
>                  'user': 'password')
> 
>      eval      rc=http_url_post(
>                    '[2]http://xx.xxx.xx.xxx/ffws/v1/ofax'
>                     :%addr(data): %len(%trimr(data)):
>                     '/tmp/httptest.html')
>      Here i get  a time out error. But when i try to do the same from
>      Explorer this link works just fine and shows me the successful XML
>      in return. Please help.
>      Thanks,
>      Musthafa
> 
>    On Fri, Aug 28, 2009 at 4:13 PM, Mohamed Musthafa Safarulla
>    <[3]mohamedmusthafa.safarulla@xxxxxxxxx> wrote:
> 
>      Hi,
>      I am trying to make a http post using http_url_post. Actually this
>      requires authentication. Also the url posting must be done in
>      base64 encoding.
>      I know I can do so much with Skotts API. Just wondering If  could
>      do this with HTTP API! Please share your expertise.
>      --
>      Thanks,
>      Musthafa
> 
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------