6/22/2023 0 Comments Kantoplayer does not workThis stores the cookie in the otherwise unused temporary "cookie jar" file called "cookiefile" thereby enabling curl to send the needed cookie(s) with its subsequent requests.įor example, I added the flag -c x directly after "curl " and I obtained the output just like from wget (except that wget writes it to a file and curl prints it on STDOUT). The easiest way I see to modify your curl command and obtain the desired resource is by adding -c cookiefile to your curl command. The request sent by curl never includes the cookie. User-Agent: Mozilla/5.0 (Windows NT 5.2 rv:2.0.1) Gecko/20100101 Firefox/4.0.1Ĭookie: NYT-S=0MhLY3awSMyxXDXrmvxADeHDiNOMaMEZFGdeFz9JchiAIUFL2BEX5FWcV.Ynx4rkFI On the other hand, wget follows the same sequence except that it returns the cookie set by with its subsequent request(s) -request begin. < Content-Type: text/plain charset=UTF-8įollowed by a loop of redirections (which you must have noticed, because you have already set the -max-redirs flag). which shows that curl is redirected to a login page > GET /2012/75/ HTTP/1.1 The way to solve is to analyze your curl request by doing curl -v. If NY Times might be cloaking, and not returning the source to curl, what could be different in the headers curl is sending? I assumed since the user agent is the same, the request should look exactly the same from both of these requests. For curl, it returns immediately after 1 second, so I know it's not a timeout issue. I've used the same user agent, and both are coming from the same IP, and are following redirects. Here's a rundown of my sets of speakers- what happened to them > what replaced them. It seems that I can't get a pair that lasts longer than 18 months. I am using both curl and wget to get this url: įor curl, it returns no output at all, but with wget, it returns the entire HTML source: So far Kanto's customer support has been excellent in replacing broken units, but after another pair (YU6) broke this weekend (number 3 below) I'm growing weary.
0 Comments
Leave a Reply. |