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

RE: Error? cookie_read (HEADERR4)



Morning,

Basic sequence of my code (just the major calls)
	callp     http_debug(*ON: O_Debug)            
	callp     http_use_cookies(*ON)               
	callp     http_cookie_file(O_Cookie)          
	eval      rc = https_init(*BLANKS)            
	eval      rc = http_url_get(wkNewLoc:khttp)   

I have another version where I get the cookie.
In this case I was testing to see what happens if I already have the
cookie on the IFS (but it is expired).
So, I was walking thru debug on the  http_url_get 
	do_get --> parse_resp_chain --> header_load_cookies -->
cookie_read
I believe that was the first call to cookie_read in this particular run.

You have a (in cookie read)
	callp     cookie_reset(data)            
	Eval      cd_temp = *OFF                
Before you enter the DOW loop checking "offset < size"

I added a 
	Eval      p_cookie_data = %addr(data)      
Before that. Seems to work. 


-- Jim

-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
[mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott
Klement
Sent: Monday, April 06, 2009 4:37 PM
To: HTTPAPI and FTPAPI Projects
Subject: Re: Error? cookie_read (HEADERR4)

Hi Jim,

p_cookie_data is set when CHAR=CR (the next section of code).   The only

reason you'd get a pointer error there would be if you got a LF 
character before you had got a CR character -- which shouldn't be
possible.

When HTTPAPI writes the cookie file, it always puts a CR before the 
LF...  so unless you're reading a file that wasn't written by HTTPAPI, 
or unless you've modified your cookie file, I don't see how you could 
get a LF before a CR?!

Can you please provide more information?


Jim Muehe wrote:
> 
>    I downloaded the beta of
[1]http://www.scottklement.com/httpapi/beta
> 
> 
>    Getting an error (SSL, Already have cookie (expired))
> 
>    cookie_read (HEADERR4)
> 
>        Eval      cd_temp = *OFF
> 
>        (the first one)
> 
>    *Err Pointer not set for location referenced.
> 
> 
>    Do I need to add an
> 
>        Eval      p_cookie_data = %addr(data)
> 
>    I have not used pointer in a while, so I might have it all wrong.
> 
> 
>    Actually I am not following why you are setting cd_temp - of course
>    that is not important. I should be able to figure it out.
> 
> 
> 
>    Jim Muehe
> 
>    Programmer/Analyst
> 
>    719-272-2618
> 
>    CHEFS
> 
>    5070 Centennial Blvd
> 
>    Colorado Springs, CO 80919
> 
>    [2]www.chefscatalog.com
> 
> 
>      _________________________________________________________________
> 
>    CONFIDENTIALITY NOTICE: This e-mail message, including any
>    attachments, is for the sole use of the intended recipient(s) and
may
>    contain confidential and proprietary information. Any unauthorized
>    review, use, disclosure or distribution is prohibited. If you are
not
>    the intended recipient(s), please contact the sender by reply
e-mail
>    and destroy all copies of the original message.
> 
> References
> 
>    1. http://www.scottklement.com/httpapi/beta
>    2. http://www.chefscatalog.com/
> 
> 
> 
>
------------------------------------------------------------------------
> 
>
-----------------------------------------------------------------------
> 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
-----------------------------------------------------------------------



----------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and proprietary information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient(s), please contact the sender by reply e-mail and destroy all copies of the original message. 
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------