<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def compose_post(apikey, resize, rotation, noexif):
 """ composes basic post requests """

    check_rotation(rotation)
    check_resize(resize)

    post_data = {
            'formatliste': ('', 'og'),
            'userdrehung': ('', rotation),
            'apikey': ('', apikey)
            }

    if resize and 'x' in resize:
        width, height = [ x.strip() for x in resize.split('x')]
        post_data['udefb'] = ('', width)
        post_data['udefh'] = ('', height)
    elif resize and '%' in resize:
        precentage = resize.strip().strip('%')
        post_data['udefp'] = precentage

    if noexif:
        post_data['noexif'] = ('', '')

    return post_data