hey..thanks for the reply...i actually opened it as a console app in visual studio..guess dats y i was gettin dat error.
later compiled it thru csc.exe with the /target:exe switch..and it worked.
thanks for the reply again....
User Profile
Collapse
-
using System.Windows.Forms: namespace error
Dear All,
When i use:
using System.Windows. Forms;
I get the following error when compiling:
Error 3 : The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference?)
How can i add windows in to the system namespace, any help is appreciated.
Thanks in advance. -
piedpiper replied to c#:collectin cookies frm httpwebresponse when multiple set-cookies headers r returnedin .NETwell actually the mypsace.com sever sets 5-6 separate set-cookie headers and when u get it thru response.header s then all of them are pushed in to a single set-cookie header, i want to split them back and send them to the browser as 5 seperate set-cookie headers like the server had sent, but since every site has its own style for cookies am not sure i can write a regex which will work all the time. dats y i was looking for an alternate method....Leave a comment:
-
piedpiper replied to c#:collectin cookies frm httpwebresponse when multiple set-cookies headers r returnedin .NEThi plater, thanks for the reply.
i did think about it as well, it would involve more code and i might possible miss out something.i have seen websites setting really weird cookies.i was hoping if there was a more direct way through which i could directly access the raw set-cookie headers, that way possibilities of introducing bugs would become less....Leave a comment:
-
piedpiper started a topic c#:collectin cookies frm httpwebresponse when multiple set-cookies headers r returnedin .NETc#:collectin cookies frm httpwebresponse when multiple set-cookies headers r returned
I am coding a http proxy in c# and using httpwebrequest class to send request to the web server, when the server returns multiple set-cookie headers then the httpwebresponse object combines them all in to a single set-cookie key-value pair.
I am tryin to get the value of the headers in the following way.
Code:for (int i = 0; i < response.Headers.Count; ++i) Console.WriteLine("{0}:{1}", respo
No activity results to display
Show More
Leave a comment: