Quote:
Originally Posted by Mostey
Damit du den Namespace kennst. Außerdem ist System.Net.Http kein Standardassembly, das musst du nachinstallieren. (Über NuGet zum Beispiel)
|
Ok werde mir das dann mal laden, dachte die ist mit in system.net drine :D
Edit: Mostey komme mit deiner Version nicht klar, verstehe es einfach nicht.
Waka Toe: hab den token gefunden ich lade den durch einen get und speichere es in eine string usw. mit dem gleichen cookiecontainer auch zur sicherheit, klappt aber immernoch nicht. Ich glaube es liegt am Content Type.
Hier ist die Header datei die gesendet wird.
Code:
POST http://ask.fm/register HTTP/1.1
Host: ask.fm
Connection: keep-alive
Content-Length: 1410
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://ask.fm
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/33.0.1750.154 Safari/537.36
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary5UuD6XunTmjwPbIY
Referer: http://ask.fm/signup
Accept-Encoding: gzip,deflate,sdch
Accept-Language: de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4,tr;q=0.2
Cookie: __qca=P0-1793600954-1393536757156; mobile_view=false; language_id=14; rbox_type=1; rbox_toggle=2; country_id=43; country_code=DE; __utma=71640835.1704127237.1393536757.1396034911.1396183971.5; __utmb=71640835.28.10.1396183971; __utmc=71640835; __utmz=71640835.1396034911.4.3.utmcsr=facebook.com|utmccn=(referral)|utmcmd=referral|utmcct=/; _ask.fm_session=BAh7CToQb2xkX2dldF91cmwiDC9zaWdudXA6EF9jc3JmX3Rva2VuIjFDczQyWVdCSjJnWkJhdlVhK0tXQmZPRVBCVk1pd2NTM3d0VkI1ZVhzNnNvPToccmVnaXN0cmF0aW9uX3N0YXJ0X3RpbWUiFjEzOTYxODUzMjAgNTc5ODMzOg9zZXNzaW9uX2lkIiUwZTBkYjc4YjU4ZjQ5ODZmYzUxMWI2NzljNjU1YTllOA%3D%3D--161d855985afca3f6dcf1f47b1b831105cc3b82a
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="authenticity_token"
Cs42YWBJ2gZBavUa+KWBfOEPBVMiwcS3wtVB5eXs6so=
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[login]"
usernametest123
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[name]"
vornametest nachnametest
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[password]"
testpw
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[password_confirmation]"
testpw
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[email]"
[Only registered and activated users can see links. Click Here To Register...]
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[born_at_day]"
6
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[born_at_month]"
6
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[born_at_year]"
1996
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[gmt_offset]"
-120
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="user[language_id]"
14
------WebKitFormBoundary5UuD6XunTmjwPbIY
Content-Disposition: form-data; name="commit"
Registrieren
------WebKitFormBoundary5UuD6XunTmjwPbIY--
HTTP/1.1 302 Found
Content-Type: text/html; charset=utf-8
Content-Length: 131
Status: 302 Found
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Set-Cookie: l=; domain=ask.fm; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie:
Set-Cookie: auth_token=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
Set-Cookie:
Set-Cookie: country_id=43; domain=ask.fm; path=/; expires=Mon, 30-Mar-2015 13:42:26 GMT
Set-Cookie:
Set-Cookie: country_code=DE; domain=ask.fm; path=/; expires=Mon, 30-Mar-2015 13:42:26 GMT
Set-Cookie:
Set-Cookie: language_id=14; domain=ask.fm; path=/; expires=Mon, 30-Mar-2015 13:42:26 GMT
Set-Cookie: _ask.fm_session=BAh7CjoQb2xkX2dldF91cmwiDC9zaWdudXA6GXNob3dfY29udmVyc2lvbl9jb2RlVCIKZmxhc2hJQzonQWN0aW9uQ29udHJvbGxlcjo6Rmxhc2g6OkZsYXNoSGFzaHsGOgtub3RpY2UiNER1IGhhc3QgZGljaCBlcmZvbGdyZWljaCBhdWYgQXNrLmZtIHJlZ2lzdHJpZXJ0BjoKQHVzZWR7BjsIRjoMdXNlcl9pZGkEjY8lBzoPc2Vzc2lvbl9pZCIlN2YyM2JlYjYzOTg3ZmI4YTZhODUxZTkxYjlhMjk5Zjg%3D--2c68400db7ea7665792bb212831daf352d8b5add; path=/; HttpOnly
X-Content-Type-Options: nosniff
X-Runtime: 114
Cache-Control: no-cache
Location: http://ask.fm/account/social-friends/facebook/facebook?redir=home
X-Powered-By: Phusion Passenger 4.0.20
Date: Sun, 30 Mar 2014 13:42:26 GMT
Server: nginx/1.4.2 + Phusion Passenger 4.0.20