dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: Help?! How do I do a GET

  1. #1
    Join Date
    Jul 2014
    Posts
    4

    Help?! How do I do a GET

    Hey guys Im new to web developing so I apologize in advance if this is posted in the wrong section. I have been looking up webdev jobs recently just to see what I have to learn to expand my skill set. I came across a company's site that required a completion of a quick test in ordered to be considered for the position. Not going to apply since Im still a beginner but their question was ....

    Perform a GET to this URL with the following parameters: firstName, lastName, email.

    Anyone know how to do this?

    Thanks

  2. #2
    Join Date
    Jul 2014
    Posts
    4
    Read up on HTTP Request Methods here: http://www.w3schools.com/tags/ref_httpmethods.asp

  3. #3
    Join Date
    Jul 2014
    Posts
    4
    Quote Originally Posted by mborja View Post
    Read up on HTTP Request Methods here: http://www.w3schools.com/tags/ref_httpmethods.asp
    How do i submit these GET methods? Do i need some special type of software(s)? Is so which ones??

  4. #4
    Join Date
    Jul 2014
    Posts
    4
    If you read again closely, the page states: "Note that query strings (name/value pairs) is sent in the URL of a GET request" (i.e. not in a form).

  5. #5
    Join Date
    Mar 2012
    Posts
    1,834
    You could write a mini web page containing a form with action="URL" and method=get and three input fields, and a submit button. However, the easiest way to do it is to just type the lot into the web browser's address box. The format of a GET is:

    URL?parm=text&parm2=text2&parm3=text3

    Note the use of ? & and = and no quotes round the text. E.g.

    http://www.somewhere.com?firstName=John&lastName=Doe&email=johndoe@hotmail.com

    Care: It is case sensitive.
    Last edited by jedaisoul; 07-31-2014 at 07:06 PM.

  6. #6
    Join Date
    Jul 2014
    Posts
    4
    Awesome ! Thanks guys I got it. I knew it was easy but Im just a noob at this. Okay so I completed the GET part. Step 2 says

    Congratulations willie cicci, you completed Step 1!

    Step 2 is as follows:
    Perform a POST to the URL you constructed in Step 1.
    You will need to post an instance of the application object described below.
    You will need to post the body in properly formatted JSON.
    You will need to pass in all required headers.
    Please set the isTest boolean to TRUE while testing, and FALSE when you are ready for your final submission.
    application {
    Boolean isTest (required)
    String firstName (required)
    String lastName (required)
    String email (required)
    String phone (required)
    String zipcode (required)
    String describeYourself (required)
    ool[] objectLanguages (required)
    education[] education (required)
    experience[] experience (required)
    certification[] certs
    }

    education {
    String school (required)
    Integer graduationYear (required)
    String degree (required)
    String major (required)
    }

    experience {
    String company (required)
    Date fromDate [yyyy-MM-dd] (required)
    Date toDate [yyyy-MM-dd] (required)
    String title (required)
    String workDone (required)
    }

    certification {
    String certification (required)
    Date dateCertified [yyyy-MM-dd] (required)
    }

    ool {
    String language (required) [must include at least 'javascript'; include any other OOP languages you know]
    Integer proficiency (required) [scale of 0-10, 0 being none, 10 being proficient]
    }

    A successful post will result in a code 202 and you will receive an automated email confirmation. Good Luck!



    Does all this go in the address bar again? If so what is the format of the syntax? I know the GET url was url.com?par1=text1&par2=text2...etc

  7. #7
    Join Date
    Mar 2012
    Posts
    1,834
    Sorry, you cannot access the post mechanism from the address bar. You can access the POST mechanism with a form, but I'm not sure whether that will generate the output in JSON syntax? Besides which, it is intended as evidence of your level of proficiency. So there would be no point my doing it for you even if I could!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles