[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: HTTPAPI 1.9 pre3
Sender: "Tom Carriere" <carriere@xxxxxxx>
When I tried your exact parameters with HTTP_TIMEOUT,
I wait for 60 seconds and then I get the result data.
How do I get the debug file to work?
It seems like the following logic should handle my situation.
C* if an error occurred, that might also signal the end of the
C* data... but since web servers differ in how they disconnect
C* us, we'll save the message -- but return success.
c eval wwErr = errno
c if wwLen<0 and wwErr <> EAGAIN
c callp SetError(HTTP_RDRECV:'recvdoc: re
c %str(strerror(wwErr)) )
c return wwRet
c endif
The values of wwErr = 3406 and wwLen = -1
Not sure what EAGAIN is set to but if it was 3406, then I think
the code would work for me.
*** Then it selects the socket and waits for 60 seconds and I get my result
5047 5046 C* If there was no data received, wait until some is
availab
5048 5047 c eval p_saveaddr = p_timeval
5049 5048 c eval p_timeval = %addr(wwTimeout)
5050 5049 c eval tv_sec = peTimeout
5051 5050 c eval tv_usec = 0
5052 5051 c eval p_timeval = p_saveaddr
5053 5052
5054 5053 c callp FD_ZERO(wwfds)
5055 5054 c callp FD_SET(peSock: wwfds)
5056 5055
5057 5056 c if
select(peSock+1:%addr(wwfds):*
5058 5057 c %addr(wwTimeout) ) < 0
-----Original Message-----
From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx]On
Behalf Of Scott Klement
Sent: Thursday, March 04, 2004 1:25 PM
To: ftpapi@xxxxxxxxxxxxx
Subject: RE: HTTPAPI 1.9 pre3
Sender: Scott Klement <klemscot@xxxxxxxxxxxx>
Tom,
I'm running the exact same source that you've attached, except for one
slight change. My call to http_url_post_raw looks like this:
C eval rc = http_url_post_raw(
C 'http://transport.alk.com/'
C 'Fleetsuite.asmx/GetDirFromAdrToAdr?'
C : %addr(data): %len(%trimr(data))
C : 1
C : %paddr('INCOMING')
C : HTTP_TIMEOUT
C : HTTP_USERAGENT
C : 'application/x-www-form-urlencoded
*
C if rc <> 1
C eval msg = http_error
C dsply msg
c endif
It works perfectly for me, completes in about a second, no errors... shows
street names... Very strange that it works perfectly for me, but not for
you.
Can you send me a debug file, I'm not sure if that'll help or not, but I
don't know what else to try...
On Thu, 4 Mar 2004, Tom Carriere wrote:
>
> I installed the 1.9 pre3 release and it does not
> solve the timeout issue or it thinks there is more
> data to read on the socket. I have V4R4M0 installed
> and I am connecting to an MS .Net XML service.
> My sample source code is attached.
>
> -----Original Message-----
> From: owner-ftpapi@xxxxxxxxxxxxx [mailto:owner-ftpapi@xxxxxxxxxxxxx]On
> Behalf Of Scott Klement
> Sent: Tuesday, March 02, 2004 4:07 PM
> To: ftpapi@xxxxxxxxxxxxx
> Subject: HTTPAPI 1.9 pre3
>
>
> Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>
>
>
> Hello,
>
> The version of HTTPAPI that I'm currently using is 1.9pre3. For Tom &
> others who are having problems, I'd really like you to try this out and
> see if it solves your problem.
>
> For everyone else, I'd really appreciate your help testing this code to
> ensure that it's working properly everywhere before we do an official
> release.
>
> I'm especially interested in whether or not it compiles and runs on V4R2 -
> V5R1 versions of OS/400, as I do not have any way to test it on older
> releases right now.
>
> You can download the pre-release files here:
>
> (save file format:)
> http://www.scottklement.com/httpapi/beta/httpapi.savf
>
> (XML format:)
> http://www.scottklement.com/httpapi/beta/httpapi.xml
>
> Also, it's no longer necessary to manually change CONFIG_H if you want to
> compile without SSL. When you run the install program, it'll ask you if
> you want SSL, and it'll modify CONFIG_H accordingly.
>
> (I did it this way so that I can skip building the sample programs that
> require SSL if SSL is not included)
>
> ---
> Scott Klement http://www.scottklement.com
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubsribe from the list send mail
> to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
> -----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------