Recommended Posts

OK timdorr...

I'm not sure if anyone else is using this yet or not, but maybe something we could put in here to make things a little bit easier...

Could we put begin and end character strings to signify begin of data and end of data. I'm just trying to recommend a standardized mechanism. It's currently possible to get the data, but it would be really easy if we can look for certain characters or delimiters so to speak.

Hmm...Just something that could/would be consistent.

I am. The character is a newline.

I am. The character is a newline.

Well....yeah. Let me rephrase...

Given The following lines:

<strong>Username:</strong> userA<br />\n

<strong>E-mail:</strong> [email protected]<br />\n

What I was trying to ask was delimiting it so you could parse the labels (Username and Email)

and then parse the data userA and [email protected]

But it's already delimited enough I guess. An XML format would be cool, but this will work well also. You just have to parse through the strings. No big deal. :D

OK Timdorr, can you add a whitespace in between the last character of an item and the <br />?

Like change

<strong>Username:</strong> userA<br />\n

to

<strong>Username:</strong> userA <br />\n

If you can do that, then you can use this Regular Expression to match the Label and Data Elements.

&lt;strong&gt;(?&lt;label&gt;\w*\s*\W*\S*)&lt;/strong&gt;(?&lt;data&gt;\w*\s*\W*\S*)

HAHAHAHAHAHAHA......

Sorry Timdorr. I was looking at what Sietse was displaying....you already have it delimited with carriage returns... I just now got the return from you.

Sorry for the confusion....

:argh:

Actually would I be able to get the complete user group list? Like whenever I login with the link above, it gives my user group as "@ Subscrib". It would just simplify things on my end, because I'm going to have the user group in the profiles at Neomap.

chorpeac, I should add you to my MSN list.

Sorry, bout I think neowin's login form looks a bit ugly. Are we allowed to use our own external forms to process the login.

ie:

&lt;form action="https://www.neowin.net/login/?url=http://www.sitename.com/login.php" method="post"&gt;
&lt;input type="hidden" name="action" value="do_login"&gt;

&lt;table cellspacing="0" cellpadding="5" border="0"&gt;
	&lt;tr&gt;
  &lt;td&gt;Username:&lt;/td&gt;
  &lt;td&gt;&lt;input type="text" name="username" size="30"&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
  &lt;td&gt;Password:&lt;/td&gt;
  &lt;td&gt;&lt;input type="password" name="password" size="30"&gt;
	&lt;/tr&gt;
	&lt;tr&gt;
  &lt;td colspan="2" align="center"&gt;&lt;input type="submit" value="login"&gt;&lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;
&lt;/form&gt;

Ah well, you know even if that did work, you wouldn't know if the username and password combination was accepted/correct or not.

Actually I managed to get it working on my webserver.

Ah well, you know even if that did work, you wouldn't know if the username and password combination was accepted/correct or not.

Errr.. I don't mean to be rude or anything but do you know what you're talking about?

Of course it would work. I've tested it and it does work. There's no reason why it shouldn't. I'm just after permission that we CAN use it as it may appear malicious.

Anyways, nice work people.

I've got that itchy feeling that this time next month we'll have a hugely complicated protocol up and running (Y).

Errr.. I don't mean to be rude or anything but do you know what you're talking about?

Of course it would work. I've tested it and it does work. There's no reason why it shouldn't. I'm just after permission that we CAN use it as it may appear malicious.

Well, I have never posted data to another site through a form like that. I'm using the thing right now, and I see how it works. I'm just curious how this method handles an invalid login. What happens? Does it return a false or something? If the login is accepted do you still get to access the returned values?

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • My son is in Monaco right now, and I was checking his location in Apple's Find My app. I noticed that Prince Albert's Palace was blurred out on the satellite imagery in both Find My and Apple Maps. I checked Google Maps, and the palace wasn't blurred there. Does Apple have some kind of process where property owners can request that their homes be blurred on Apple Maps?  
    • No, it was THAT ugly and I’d rather forget it completely existed.
    • There is a lot of reasons not to use Edge but faster fixes and security updates is not one of them.
    • Can't reproduce. I installed Edge, went to neowin.net > accepted the cookie consent > used menu to go to forums, everything loads and I can browse around the forums. If you can't interact with the dialog on the forums for some reason, go to the main site and accept the cookie consent there? It is true that the site will not function properly until the cookie consent is accepted or rejected,. it's a legal requirement and I also know that certain VPN/ad blockers block it, which is a user related issue and not a neowin.net problem.   This is not our cookie consent dialog. Gotta love browser hijacking... /s Edit: this may be what Californians see, I will confirm with our consent provider.
    • Google Chrome 149.0.7827.115 (offline installer) by Razvan Serea The web browser is arguably the most important piece of software on your computer. You spend much of your time online inside a browser: when you search, chat, email, shop, bank, read the news, and watch videos online, you often do all this using a browser. Google Chrome is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier. Use one box for everything--type in the address bar and get suggestions for both search and Web pages. Thumbnails of your top sites let you access your favorite pages instantly with lightning speed from any new tab. Desktop shortcuts allow you to launch your favorite Web apps straight from your desktop. Chrome has many useful features built in, including automatic full-page translation and access to thousands of apps, extensions, and themes from the Chrome Web Store. Google Chrome is one of the best solutions for Internet browsing giving you high level of security, speed and great features. Important to know! The offline installer links do not include the automatic update feature. Download web installer: Google Chrome Web 32-bit | Google Chrome 64-bit | Freeware Download: Google Chrome Offline Installer 64-bit | Direct Link | 131.0 MB Download: Google Chrome Offline Installer 32-bit | Direct Link | 119.0 MB Download page: Google Chrome Portable Download: Chrome ARM64 | Direct Link View: Chrome Website | Release Notes Get alerted to all of our Software updates on Twitter at @NeowinSoftware
  • Recent Achievements

    • One Month Later
      Clizby earned a badge
      One Month Later
    • One Month Later
      Timaximus earned a badge
      One Month Later
    • Week One Done
      Timaximus earned a badge
      Week One Done
    • Rookie
      FBSPL went up a rank
      Rookie
    • First Post
      davidbazooked earned a badge
      First Post
  • Popular Contributors

    1. 1
      +primortal
      491
    2. 2
      PsYcHoKiLLa
      170
    3. 3
      +Edouard
      164
    4. 4
      Steven P.
      85
    5. 5
      ATLien_0
      76
  • Tell a friend

    Love Neowin? Tell a friend!