AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi Form and HTTP redirection
Thema durchsuchen
Ansicht
Themen-Optionen

Form and HTTP redirection

Ein Thema von WojTec · begonnen am 9. Jan 2016 · letzter Beitrag vom 12. Jan 2016
Antwort Antwort
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#1

Form and HTTP redirection

  Alt 9. Jan 2016, 13:29
HTML:

Code:
<form method="POST" action="http://www.livejournal.com/misc/adult_explicit.bml">
<input type='hidden' name="ret" value="http://vrotmnen0gi.livejournal.com/2223166.html" />
<button type='submit' name="adult_check" value="Yes, I am at least 18 years old.">Yes, I am at least 18 years old.</button>
</form>
Delphi (library = Clever Internet Suite):

Delphi-Quellcode:
Request.AddFormField('ret', edtSource.Text);
Http.AllowRedirects := True;
Http.Post('http://www.livejournal.com/misc/adult_explicit.bml', Request, Html);
This code gives me adult_explicit.bml, but should the one from ret fiels. Could you help, please
  Mit Zitat antworten Zitat
Benutzerbild von geskill
geskill

Registriert seit: 17. Feb 2007
Ort: NRW
420 Beiträge
 
Delphi 2010 Professional
 
#2

AW: Form and HTTP redirection

  Alt 11. Jan 2016, 20:09
Just set this cookie and you're fine: adult_explicit=1 for .livejournal.com

You are not required to do the POST-REQUEST.

I think you know what you do
Sebastian
  Mit Zitat antworten Zitat
WojTec

Registriert seit: 17. Mai 2007
480 Beiträge
 
Delphi XE6 Professional
 
#3

Re: Form and HTTP redirection

  Alt 12. Jan 2016, 14:19
Thank you buddy!
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 14:41 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz