Re: How to logon and post this to a web form



system.web
you need that..
then you need to make a http object
i think it is
system.web.httpcontext.
you should not need to set anything as far as vars. You should make a post
just like you would in web page
I have code that ports any web page and displays it on my own. If you want
that email me
ccalzaretta@xxxxxxxxxxx
subject..Code
<mykyp@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:1125694174.277443.131180@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
> I am trying to use my vb.net app as a replacement to a normal browser
> to interface with a website.
> I am trying to achieve 2 things:
> 1) logon to the website
> 2) complete forms and submit data to the website (would I need to store
> cookies once I have logged on?)
>
> I've looked at various webrequest, POST resources without any luck. The
> logic behind what I need to do seems straightforward, but I'm finding
> this really hard applying it to code.
>
> The post data details are as follows:
> 1) for logon:
> Mime type : application/x-www-form-urlencoded
> languageSelector : en%2CGBR
> username : xxxxx
> password : xxxxxxx
> LoginBTN :Login
>
> Request Header Name Request Header Value
> POST /account/login/LoginAction.do HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, application/vnd.ms-excel,
> application/vnd.ms-powerpoint, application/msword, */*
> Referer: http://www.betfair.com/Header.do
> Accept-Language: en-gb
> Content-Type: application/x-www-form-urlencoded
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
> .NET CLR 1.1.4322)
> Host: www.betfair.com
> Content-Length: 93
> Connection: Keep-Alive
> Cache-Control: no-cache
> Cookie:
>
> 2) for sending form info:
> Mime Type : application/x-www-form-urlencoded
> BetIDs :
> origin : placeBets
> SelectionIDs :5861|5862|
> BidTypes :B|B|
> Odds :1000|1000|
> NewOdds :
> Stakes :2|2|
> NewStakes :
> Modes :
> SubEventIds :
> BetType :O
> ei :3337261
> iid :GreyHound
> fa :pb
> iCard :
> placeBets_oddsLayProfitLiability : Liability
>
> Request Header Name Request Header Value
> POST /betting/BetsManipulationAction.do HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/x-shockwave-flash, application/vnd.ms-excel,
> application/vnd.ms-powerpoint, application/msword, */*
> Referer:
> http://www.betfair.com/betting/MarketView.do?mi=3334570&origin=NHR
> Accept-Language: en-gb
> Content-Type: application/x-www-form-urlencoded
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
> .NET CLR 1.1.4322)
> Host: www.betfair.com
> Content-Length: 237
> Connection: Keep-Alive
> Cache-Control: no-cache
> Cookie:
>
> I believe this is all the information I need to be able to do this, but
> as I said, knowing where to start is a nightmare :-)
>
> Any help, in particular code examples would be hugely appreciated.
>
> Many thanks,
>
> Mike
>


.



Relevant Pages

  • Re: X11-Forwarding from third machine
    ... >Of course, this does not work, since Host C does not supply the correct ... >magic cookie for the X authentification to work (C is allowed to connect ... with a cookie it has generated locally - the X server is not ... TCP connection on some 6000+ port, and turn around and do a proper X ...
    (comp.security.ssh)
  • Re: iptables and port scan
    ... >> offered to the internet by a given host. ... >On this website, you'll find links. ... >mentionned, if I offer FTP, it will be mentionned, and so on. ... http://www.mixmaster.anonymizer.com/ first and search for a permit? ...
    (comp.security.firewalls)
  • Re: public web site
    ... website on my LAN, but i have been enlightened (i didn't realize i could ... I think that's pretty clear that the intent was to host the site within his network/lan ... Cris Hanna [SBS - MVP] ... Windows Small Business Server 2008 Unleashed ...
    (microsoft.public.windows.server.sbs)
  • Re: Publisher 2003 wont republish, says folder is missing or dele
    ... this worked great for one of my websites, the other one still cannot upload. ... The host is a free host without ... Then open your Publisher file, go to Tools> Options> Web tab and uncheck ... load one website by publishing to web and typing in my domain. ...
    (microsoft.public.publisher.webdesign)
  • Re: Problems accessing site
    ... so I went to that website you provided to check and see what's causing ... The website is encountering problems. ... Firefox can't establish a connection to the server at ebay.com. ... In Internet Options, Content tab, if Content Advisor is turned on, click ...
    (microsoft.public.windowsxp.help_and_support)