.NET Windows Form Client Problem

JasonHo

Joined: 2005-01-15
Posts: 1
Posted: Sat, 2005-01-15 08:13

Hi,

I want to develop my own client as a vb.net Windows Form and follow the GR protocol to upload photos.

However, I find that the Windows Forms cannot hold cookies. So after login, when I want to fetch albums, the Gallery server treat me as not login.

Any one has idea on who to solve this problem??

Thanks,
Jason

 
xviiithangel

Joined: 2005-02-23
Posts: 5
Posted: Mon, 2005-03-07 08:39

You should store the cookie in the CookieContainer class. You will get the cookie after the response. Another alternative is to look at the header, there you will see the phpsessid, store it in a variable then when you make a request place the value of phpsessid in the request header.

Im currently porting GR to PocketPc using C# .Net but having trouble uploading a photo. Tell me if u can upload a photo