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

Re: error on HTTP_URL_POST



Replace 'HTTP_TIMEOUT' with the number of seconds you'd like to use as a 
timeout value.

For example, this would set the timeout to an hour (3600 seconds):

  rc = http_url_post_xml(
       'https://www.myws.net/WS/Watcher/V1_4/CS.asmx'
       : %addr(SOAP) + 2
       : %len(SOAP)
       : %paddr(StartOfElement)
       : %paddr(EndOfElement)
       : *NULL
       : 3600
       : HTTP_USERAGENT
       : 'text/xml; charset=utf-8'
       : 'ClientService/1.2.2/GetReport');



Karl Woods wrote:
> Here's how the post is coded in my program:
> 
> rc = http_url_post_xml(                                      
>      'https://www.myws.net/WS/Watcher/V1_4/CS.asmx'
> 
>      : %addr(SOAP) + 2                                       
>      : %len(SOAP)                                            
>      : %paddr(StartOfElement)                                
>      : %paddr(EndOfElement)                                  
>      : *NULL                                                 
>      : HTTP_TIMEOUT                                          
>      : HTTP_USERAGENT                                        
>      : 'text/xml; charset=utf-8'                             
>      : 'ClientService/1.2.2/GetReport');                     
> 
> How would I change the time out?
> 
> 
> Karl 
> 
> -----Original Message-----
> From: Scott Klement [mailto:klemscot@xxxxxxxxxxxx] 
> Sent: Monday, March 09, 2009 12:18 PM
> To: HTTPAPI and FTPAPI Projects
> Subject: Re: error on HTTP_URL_POST
> 
> Karl,
> 
> The timeout value is a parameter you pass to the http_url_post() (or 
> similar) API.
> 
> 
> Karl Woods wrote:
>> Ok. I found out where the problem was. I was feeding the data into a
> Data Queue and reached the max size on the queue. I've corrected the
> problem.
>> I have another problem. I get the following error: CommSSL_Read:
> time-out!
>> Is there any way to increase the wait time before a time-out is
> encountered?
>> Thanks,
>> Karl B. Woods  
>> Sr. Programmer/Analyst
>> Professional Services
>>
> -----------------------------------------------------------------------
> 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
> -----------------------------------------------------------------------
> 

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