[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HttpApi Urgent Help **
Hello,
Can you please update to the current version of HTTPAPI, and use the
built-in cookie support? That seems much easier than writing your own.
Cookie support was added in version 1.14, released in January 2006.
But, there have been bug fixes since then -- I recommend (as always)
that you run the current version of HTTPAPI. (Indeed, the current BETA
is the best choice right now.)
Also, if you get a 301 or 302 response, won't the following produce an
endless loop?
c dou rc<> 302 and rc<> 301
c eval rc = http_url_get(wkNewLoc:
c '/tmp/test1.html:30:UserAgent')
c enddo
Perhaps you meant to code something like this?
dou rc<>302;
rc = http_url_get( wkNewLoc
: '/tmp/test1.html'
: 30);
if rc=302;
wkNewLoc = http_redir_loc();
endif;
enddo;
The idea is... if you are sent a redirect, you change the URL to the
redirected-to location, and GET that new page, rather than retrieving
the same one again. If you retrieve the same one again, I would expect
the program to loop endlessly.
-SK
On 1/4/2012 11:43 AM, Giovanni De Cristoforo wrote:
> Mike
> Thanks a lot for your advise.
> I used Fiddles and I did a step forward
> In fact I noticed that navigating to the initial page
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------