Starting Programming Challenges

Put your programming skills to the test in these challenges.

Re: Starting Programming Challenges

Post by sam_2108 on Fri Feb 11, 2011 1:10 am
([msg=53382]see Re: Starting Programming Challenges[/msg])

Ok... here is what i did ...

tried using cookiejar with curl, it requires a filename a create the file which acts like cookie.txt. Atleast this is what my understanding is... let me know if i am wrong.
I understand that i need to put the session info in the file so that when curl sends request to HTS, HTS treats it as the same session as my browser. But the problem is my firefox is 3.6.. this version stores cookies in sqlite format... which is a database extract.. I even extracted the tables and saved all the info related to HTS is a file and passed it to cookiejar, but still getting the same thing... May be i need to format the entry or shall i manually create the cookie? Am i thinking in right direction...

@fashizzlepop, you do it in PHP. can you give me the code which connects to the site.. may be i'll try to read it and understand where am i doing wrong?

@unterbuchse, your approach is interesting and i'll try it but i want to learn how to access site using command line utilites like curl...

I am doing it in C... Do you guys think that should i switch to php... "C is my fav language :)"

@Defience, do we have some tutorial on this at HTS? if yes can you point me out please?
sam_2108
New User
New User
 
Posts: 4
Joined: Tue Feb 08, 2011 11:27 pm
Blog: View Blog (0)


Re: Starting Programming Challenges

Post by fashizzlepop on Sat Feb 12, 2011 3:55 am
([msg=53431]see Re: Starting Programming Challenges[/msg])

In Perl, cookiejar automagically captures the info when I log in with it.
The glass is neither half-full nor half-empty; it's merely twice as big as it needs to be.
User avatar
fashizzlepop
Developer
Developer
 
Posts: 2304
Joined: Sat May 24, 2008 1:20 pm
Blog: View Blog (0)


Previous

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests