i'm getting a error on this peticular server (wodWebServer / wodWebServer.NET)
it's giving me a incompatible browser error is there a way i can fix that?
Re: i'm getting a error on this peticular serve
Hi,
Did you perhaps try setting User-Agent header?
Can you try setting it to Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727) ?
Can you load that site using an IE or firefox? I would suggest that you try opening it using IE, while using IEWatch in order to see what exactly is sent. That way you can mimic the same behaviour as a normal browser.
Hope I helped.
Regards,
Damba
Re: i'm getting a error on this peticular s
Hi,
Did you perhaps try setting User-Agent header?
Can you try setting it to Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727) ?
Can you load that site using an IE or firefox? I would suggest that you try opening it using IE, while using IEWatch in order to see what exactly is sent. That way you can mimic the same behaviour as a normal browser.
Hope I helped.
Regards,
Damba
yeah i tried that but i'm not sure how i would code it like that like i tried wod(0).useragent = blah but its giving me a invalid property error like saying that the property does not exist but i searched in project explorer and its there so perhaps you could show me how i would code it?
Re: i'm getting a error on this peticular serve
Hi,
You should try something like this:
wodHttp1.Request.UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
or this:
wodHttp1.Request.Headers.Add User-Agent , Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Both should have the same result. Can you try those?
Regards,
Damba
Re: i'm getting a error on this peticular s
Hi,
You should try something like this:
wodHttp1.Request.UserAgent = Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
or this:
wodHttp1.Request.Headers.Add User-Agent , Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
Both should have the same result. Can you try those?
Regards,
Damba
OK, now i did that but now i can't get it to submit the form...
[code] wod(0).Disconnect
wod(0).Request.Headers.Add User-Agent , Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
wod(0).Blocking = True
wod(0).Get https://website.com/login.php
wod(0).Tag = user@user.com:pass
wod(0).URL = https://website.com/login.php
wod(0).Secure = ProtAll
wod(0).Request.FormPost.Add email , Split(wod(0).Tag, : )(0)
wod(0).Request.FormPost.Add pass , Split(wod(0).Tag, : )(0)
wod(0).Post https://website.com/login.php
[/code]
Re: i'm getting a error on this peticular serve
Hi,
But what happens? What error do you get?
Can you be more specific? What response do you receive?
Regards,
Damba
Re: i'm getting a error on this peticular s
Hi,
But what happens? What error do you get?
Can you be more specific? What response do you receive?
Regards,
Damba
its not giving error its just showing the page source and it has the value of e-mail as emailiput@blah.com but the password it doesn't say anything i assume this is because the input is type: password but it is not submitting the data...like it sets the fields but when i do the post command its like it's not submitting the data...
Re: i'm getting a error on this pet
Hi,
But what happens? What error do you get?
Can you be more specific? What response do you receive?
Regards,
Dambaits not giving error its just showing the page source and it has the value of e-mail as emailiput@blah.com but the password it doesn't say anything i assume this is because the input is type: password but it is not submitting the data...like it sets the fields but when i do the post command its like it's not submitting the data...
sorry for double post but i just looked at the data thats bein returned again it is also telling me to enable cookies.
Re: i'm getting a error on this peticular serve
Hi,
Can you please set AutoRedirect Property to true?
Also, regarding the cookies, I would suggest that you try with my previous suggestion (IEWatch/HttpLook) in order to see what cookies are passed, and try setting them in code.
You should check Response for cookies, and set the request accordingly. You can add a cookie into the collection the same way as you would add a Header item.
Regards,
Damba
Re: i'm getting a error on this peticular serve
Hi,
Please try adding something like this in your code:
http1.Request.Headers.Add User-Agent , Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
http1.Request.Cookies.Add test_cookie , 1
http1.Request.FormPost.Add email , your email
http1.Request.FormPost.Add pass , your password
http1.Request.FormPost.Add charset_test , â?¬Â´â?¬Â´ć°´Ä?Ä?
http1.Post your site
I believe this should get you to the redirection page. However, I would once again suggest that you try the HttpLook or IEWatch and watch what other browsers send. That way you can accomplish the same in wodHttpDLX.
Regards,
Damba
Re: i'm getting a error on this peticular s
Hi,
Please try adding something like this in your code:
http1.Request.Headers.Add User-Agent , Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
http1.Request.Cookies.Add test_cookie , 1
http1.Request.FormPost.Add email , your email
http1.Request.FormPost.Add pass , your password
http1.Request.FormPost.Add charset_test , â?¬Â´â?¬Â´ć°´Ä?Ä?
http1.Post your siteI believe this should get you to the redirection page. However, I would once again suggest that you try the HttpLook or IEWatch and watch what other browsers send. That way you can accomplish the same in wodHttpDLX.
Regards,
Damba
yea that worked thank you