[WIZ550web] WEB용 cgi파일은 어디에 있나요?
General
No replies yet. Be the first to reply.
Join the discussion.
General
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: [WIZ550web] WEB용 cgi파일은 어디에 있나요?
by irina WIZnet ·
안녕하세요.
cgi는 별도의 파일이 아니라 코드 내에 삽입되어 있으며, 사용자 편의를 위해 임의의 cgi MIME type으로 io 제어 및 각종 설정을 구분하도록 구성되어 있습니다.
다음 링크에서 각각 io와 설정들의 제어가 어떻게 이루어지는지 확인 하실 수 있습니다.
RE: [WIZ550web] WEB용 cgi파일은 어디에 있나요?
by jobaek ·
답변 감사합니다.
그러면, http_get_cgi_handler()안에서 Parsing을 통해, cgi파일 요청이 있으면, 해당 callback 함수를 호출하게 되어 있다는 것인가요?
내용 수정이 필요한 경우, 해당 callback함수를 변경하면 되는 것이구요?
RE: RE: [WIZ550web] WEB용 cgi파일은 어디에 있나요?
by irina WIZnet ·
네 맞습니다.
문자열 비교를 통해 요청을 구분하므로, .cgi 확장자를 가진 요청에 대응하는 함수를 위 링크의 handler 내에 추가하시면 됩니다.
만약 MIME type 자체를 .cgi가 아닌 다른 것으로 변경하시려면, 아래 링크의 http_process_handler() 함수 내 request type 비교 구문을 변경 혹은 추가 하시면 됩니다.