|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Hi I have a problem while using http-post in XQuery. I am using the following code : let $response := http-post( $myUrl, $myData, $myCookieHeader) and at the same time I am running tcpflow in a Terminal to see what's going on. I am surprise to see that the dictionary header $myCookieHeader does not show up at all in the HTTP Post. I have initialized the dictionary as follow : let $myCookieHeader := dictionary( ("Cookie", "sid=ABC1" ) ) but in the tcpflow session I can see a different Cookie header sent to the server... The cookie header sent is the one I received originally from a previous http post, but I don't want to send it back... Instead I want to send my own one ! This is the output of my tcpflow session for the previous HTTP post. 010.000.001.002.53050-010.000.001.009.00080: POST /cgi-bin/TestPost HTTP/1.0 Content-Length: 124 Cookie: sid=279050; stime=600 Host: coolserver Content-Type: application/x-www-form-urlencoded User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Mac_PowerPC) Connection: close [some data here] As you can see Sherlock is not sending the cookie "sid" I defined but instead a previous one received. So is there a way for me to either flush the cookie cache or force mine to be used instead of the one being received previously ? This is critical otherwise I can end up in a completely different session, which is not what the user is expecting ! - N _______________________________________________ sherlock-channel-development mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/sherlock-channel-development Do not post admin requests to the list. They will be ignored.
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.