http cookies

jonjk2029

New Member
Licensed User
Hi,

I'm writing a program that needs to send a cookie to a website to get the right info back. I have tried to use AddHeader(), but this throws up a .NET error when you try to add multiline data like cookie data.

fileopen(df1,"cookie.txt",cread)
cookie=filereadtoend(df1)
fileclose(df1)
wrep.new1
wreq.new1(link)
wreq.AddHeader("Cookie",cookie)
--Errors at this point


Can anyone help please?
 

jonjk2029

New Member
Licensed User
Thank you for the advice Erel, I'm now using StrReplace(cookie,crlf,"") and have edited my cookie.txt to correct a silly error that I missed earlier.

Thank you
 
Top