Cookie handeling in HTTP and POst, then to assing to browser

ds1718

Client
Регистрация
25.11.2011
Сообщения
33
Благодарностей
4
Баллы
0
Hi Guys,

I have a site I am doing several steps in HTTP then post to fill out forms

All goes well until there is an image upload button.
I don't know how to pass the image upload in post, so I was trying swap back to the browser.

Now I am having a hard time passing the cookie that I have stored back to the profile or browser section.

Any ideas how to store the cookie to profile?, or load it to browser session?

Thanks
 

zeus

Client
Регистрация
03.07.2012
Сообщения
99
Благодарностей
21
Баллы
18
I dont think POST to profile is possible, because the profile data has another file with a different extension.
but I think you can emulate the image upload using POST request too. If its not a private site do post the URL here so that we too can try and come up with a solution.
 

ds1718

Client
Регистрация
25.11.2011
Сообщения
33
Благодарностей
4
Баллы
0
craigslist.org
 

ds1718

Client
Регистрация
25.11.2011
Сообщения
33
Благодарностей
4
Баллы
0
I dont think POST to profile is possible, because the profile data has another file with a different extension.
but I think you can emulate the image upload using POST request too. If its not a private site do post the URL here so that we too can try and come up with a solution.
I have been trying to upload the images in the http post, but I am not familiar with how to do it, passing full file path to the images does not work
 

ds1718

Client
Регистрация
25.11.2011
Сообщения
33
Благодарностей
4
Баллы
0
what I am trying to do in moving to the browser, is get the Cookie ( I already have it stored)
then open the current page in Browser. The issue comes in to fully opn the current page with the current cookie.

Been trying with C# to assign the cookie using

System.Net.Cookie(cl_session, {-project.variable.cookie-}, '/', .craigslist.org)
with no luck in staying logged in
 

zeus

Client
Регистрация
03.07.2012
Сообщения
99
Благодарностей
21
Баллы
18

ds1718

Client
Регистрация
25.11.2011
Сообщения
33
Благодарностей
4
Баллы
0
OK, got the upload button working, now how to pass the cookie back to the browser?

Cookie: cl_b=6KIfG8sq4xGq2wQ61CbRsgUq+bM; cl_img=list; cl_session=t9WsmP2akHhNQRGHDgyRDymip78yWzEK2Br1yink2c2ZqYUUhheTnkHJFCbblPXF


that is the cookie (s) that I would like to move to the user profile, and store.

how to do that?
and be viewable to move from get and post to viewable browser
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 714
Баллы
113

zeus

Client
Регистрация
03.07.2012
Сообщения
99
Благодарностей
21
Баллы
18

ds1718

Client
Регистрация
25.11.2011
Сообщения
33
Благодарностей
4
Баллы
0
I tried this. and it does not open in a browser.
I am trying to actually open the next page in the browser with the cookies I have from the HTTP get and post.


I want to pass the cookies to the user profile, and be able to sue them. so when I open the page I am on, the cookie says OK, and displays it the same location and login I was on..

Does that make sense?
 

mtantouri

Client
Регистрация
11.08.2013
Сообщения
32
Благодарностей
1
Баллы
8
Anyone got a solution for this?
 

rostonix

Известная личность
Регистрация
23.12.2011
Сообщения
29 067
Благодарностей
5 714
Баллы
113
  • Спасибо
Реакции: mtantouri

mtantouri

Client
Регистрация
11.08.2013
Сообщения
32
Благодарностей
1
Баллы
8

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)